diff options
author | adam <adam@pkgsrc.org> | 2022-07-21 09:35:50 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2022-07-21 09:35:50 +0000 |
commit | dc21760628d09c1413dda72185277151cec8d6d2 (patch) | |
tree | 7878868b83ef3a532f1435c1870c01feeea3590f /net/samba4 | |
parent | a3f870321300b400ad83d3c4de17f52b22748a69 (diff) | |
download | pkgsrc-dc21760628d09c1413dda72185277151cec8d6d2.tar.gz |
Add missing patch
Diffstat (limited to 'net/samba4')
-rw-r--r-- | net/samba4/patches/patch-lib_util_time.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net/samba4/patches/patch-lib_util_time.h b/net/samba4/patches/patch-lib_util_time.h new file mode 100644 index 00000000000..ae14a8833f5 --- /dev/null +++ b/net/samba4/patches/patch-lib_util_time.h @@ -0,0 +1,25 @@ +$NetBSD: patch-lib_util_time.h,v 1.1 2022/07/21 09:35:50 adam Exp $ + +Define timeval/timespec. + +--- lib/util/time.h.orig 2022-07-20 13:08:26.333843041 +0000 ++++ lib/util/time.h +@@ -28,6 +28,18 @@ + #include <stdint.h> + #include <talloc.h> + ++/* From "system/time.h" */ ++#ifdef TIME_WITH_SYS_TIME ++#include <sys/time.h> ++#include <time.h> ++#else ++#ifdef HAVE_SYS_TIME_H ++#include <sys/time.h> ++#else ++#include <time.h> ++#endif ++#endif ++ + #ifndef TIME_T_MIN + /* we use 0 here, because (time_t)-1 means error */ + #define TIME_T_MIN 0 |