ports/net/librdkafka/files/patch-src_rd.h
Luca Pizzamiglio 3cbdb6722c net/librdkafka: update to 2.2.0
Update patches, to re-enable atomic operations in 64bit
2023-07-23 22:22:02 +02:00

15 lines
358 B
C

--- 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>