summaryrefslogtreecommitdiff
path: root/net/librdkafka/files/patch-src_rd.h
blob: 0258bfd1f1bc832fa82f7a828930f47a9c7e97bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/rd.h.orig	2023-07-12 09:03:32 UTC
+++ src/rd.h
@@ -43,6 +43,12 @@
 #ifndef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE 200809L /* for timespec on solaris */
 #endif
+#ifndef __XSI_VISIBLE
+#define __XSI_VISIBLE 700 /* for gettimeofday() */
+#endif
+#ifndef __BSD_VISIBLE
+#define __BSD_VISIBLE 1 /* for alloca() */
+#endif
 #endif
 
 #include <stdio.h>