about summary refs log tree commit diff
path: root/include/compat/unistd.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-10-11 18:26:49 -0400
committerJune McEnroe <june@causal.agency>2023-10-11 18:26:49 -0400
commit1a1b5c85663a5170da073674344ed1a6bdb0b0eb (patch)
tree81d986a5b6ea04a478ba2d0059fe5f176b3ecc8e /include/compat/unistd.h
parentImport LibreSSL 3.8.0 (diff)
downloadlibretls-1a1b5c85663a5170da073674344ed1a6bdb0b0eb.tar.gz
libretls-1a1b5c85663a5170da073674344ed1a6bdb0b0eb.zip
Import LibreSSL 3.8.1 upstream
Diffstat (limited to 'include/compat/unistd.h')
-rw-r--r--include/compat/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
index 5e6ab1d..2583a6e 100644
--- a/include/compat/unistd.h
+++ b/include/compat/unistd.h
@@ -64,6 +64,10 @@ int getentropy(void *buf, size_t buflen);
 #endif
 #endif
 
+#ifndef HAVE_GETOPT
+#include <getopt.h>
+#endif
+
 #ifndef HAVE_GETPAGESIZE
 int getpagesize(void);
 #endif