summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/k5-buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/k5-buf.h b/src/include/k5-buf.h
index 4f7a939a9..5f7936fd5 100644
--- a/src/include/k5-buf.h
+++ b/src/include/k5-buf.h
@@ -41,7 +41,9 @@
#include <stdarg.h>
#include <string.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
/* The k5buf module is intended to allow multi-step string
construction in a fixed or dynamic buffer without the need to check