summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2026-06-01 14:36:58 -0400
committerJune McEnroe <june@causal.agency>2026-06-01 14:36:58 -0400
commitdcd11ea62fce539d9a50f41a822853239e05727a (patch)
treee54578b730a4719e4bc8a2d20fef267c8db7f22f /include
parentImport LibreSSL 3.8.1 (diff)
downloadlibretls-dcd11ea62fce539d9a50f41a822853239e05727a.tar.gz
libretls-dcd11ea62fce539d9a50f41a822853239e05727a.zip
Import LibreSSL 3.8.2
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/compat/time.h8
-rw-r--r--include/compat/unistd.h3
3 files changed, 11 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 077637d..22819c8 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -10,6 +10,7 @@ noinst_HEADERS += compat/dirent_msvc.h
 noinst_HEADERS += compat/endian.h
 noinst_HEADERS += compat/err.h
 noinst_HEADERS += compat/fcntl.h
+noinst_HEADERS += compat/getopt.h
 noinst_HEADERS += compat/limits.h
 noinst_HEADERS += compat/netdb.h
 noinst_HEADERS += compat/poll.h
diff --git a/include/compat/time.h b/include/compat/time.h
index 540807d..2748521 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -3,6 +3,14 @@
  * sys/time.h compatibility shim
  */
 
+#ifndef SIZEOF_TIME_T
+#ifdef SMALL_TIME_T
+#define SIZEOF_TIME_T 4
+#else
+#define SIZEOF_TIME_T 8
+#endif
+#endif
+
 #ifdef _MSC_VER
 #if _MSC_VER >= 1900
 #include <../ucrt/time.h>
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
index 2583a6e..63c07fc 100644
--- a/include/compat/unistd.h
+++ b/include/compat/unistd.h
@@ -23,6 +23,7 @@ ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset);
 #include <io.h>
 #include <process.h>
 
+#define STDIN_FILENO    0
 #define STDOUT_FILENO   1
 #define STDERR_FILENO   2
 
@@ -65,7 +66,7 @@ int getentropy(void *buf, size_t buflen);
 #endif
 
 #ifndef HAVE_GETOPT
-#include <getopt.h>
+#include "getopt.h"
 #endif
 
 #ifndef HAVE_GETPAGESIZE