openbsd-ports/x11/gnustep/base/patches/patch-Source_NSObject_m

17 lines
391 B
Plaintext

$OpenBSD: patch-Source_NSObject_m,v 1.7 2010/08/01 12:52:42 sebastia Exp $
--- Source/NSObject.m.orig Thu Jun 10 12:13:51 2010
+++ Source/NSObject.m Sun Aug 1 12:38:13 2010
@@ -57,9 +57,11 @@
#ifdef HAVE_SYS_SIGNAL_H
#include <sys/signal.h>
#endif
-#ifdef __FreeBSD__
+#if __GNUC__ >= 4
+#if defined(__FreeBSD__)
#include <fenv.h>
#endif
+#endif // __GNUC__
#import "GSPrivate.h"