mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-24 12:14:00 -04:00
28 lines
755 B
Plaintext
28 lines
755 B
Plaintext
$NetBSD: patch-ac,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $
|
|
|
|
Broken YY_NO_INPUT is only needed for NetBSD before 5.99.21
|
|
|
|
--- common/_elftc.h 2011/11/19 10:48:54 1.1
|
|
+++ common/_elftc.h 2011/11/19 10:54:13
|
|
@@ -163,6 +163,7 @@
|
|
|
|
#if defined(__NetBSD__)
|
|
|
|
+#include <sys/param.h>
|
|
#include <sys/endian.h>
|
|
|
|
#define ELFTC_BYTE_ORDER _BYTE_ORDER
|
|
@@ -170,7 +171,11 @@
|
|
#define ELFTC_BYTE_ORDER_BIG_ENDIAN _BIG_ENDIAN
|
|
|
|
#define ELFTC_HAVE_STRMODE 1
|
|
-#define ELFTC_BROKEN_YY_NO_INPUT 1
|
|
+#if __NetBSD_Version__ <= 599002100
|
|
+/* from src/doc/CHANGES: flex(1): Import flex-2.5.35 [christos 20091025] */
|
|
+/* and 5.99.21 was from Wed Oct 21 21:28:36 2009 UTC */
|
|
+# define ELFTC_BROKEN_YY_NO_INPUT 1
|
|
+#endif
|
|
#endif /* __NetBSD __ */
|
|
|
|
#endif /* _ELFTC_H */
|