at 23.11-beta 586 B view raw
1From 1c4b0f26614bff331eb8a9f2b514309af6f31fd0 Mon Sep 17 00:00:00 2001 2From: Jose <pepone@users.noreply.github.com> 3Date: Mon, 26 Jun 2023 16:43:43 +0200 4Subject: [PATCH] Add 'unistd' header for readlink (#8) 5 6--- 7 src/system.c | 5 +++++ 8 1 file changed, 5 insertions(+) 9 10diff --git a/src/system.c b/src/system.c 11index a3501f9..646caf6 100644 12--- a/src/system.c 13+++ b/src/system.c 14@@ -37,6 +37,11 @@ 15 * 2. append the system-dependent routines in this file. 16 */ 17+ 18+#ifndef _MSC_VER 19+# include <unistd.h> // For readlink() 20+#endif 21+ 22 #if PREPROCESSED 23 #include "mcpp.H" 24 #else