1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/net/mpd5/files/patch-ppp.h
Eugene Grosbein 2daa6c3395
net/mpd5: unbreak build for GCC (powerpc64)
Unbreak package build for GCC-based arches
adding r2412 and r2414 from upstream.
No PORTREVISION bump.
2021-08-29 02:35:07 +07:00

28 lines
709 B
C

Index: src/ppp.h
===================================================================
--- src/ppp.h (revision 2411)
+++ src/ppp.h (working copy)
@@ -69,20 +69,15 @@
#define assert(e) ((e) ? (void)0 : DoAssert(__FILE__, __LINE__, #e))
#ifdef __clang__
-
+#ifndef NO_THREAD_SAFETY_ANALYSIS
#ifndef THREAD_ANNOTATION_ATTRIBUTE__
#define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))
-#else
- #define THREAD_ANNOTATION_ATTRIBUTE__(x)
#endif
-
-#ifndef NO_THREAD_SAFETY_ANALYSIS
#define NO_THREAD_SAFETY_ANALYSIS \
THREAD_ANNOTATION_ATTRIBUTE__(no_thread_safety_analysis)
+#endif
#else
#define NO_THREAD_SAFETY_ANALYSIS
-#endif
-
#endif /* __clang__ */
/* Giant Mutex handling */