chiark / gitweb /
NOTES: Improve documentation of NAKs.
[secnet.git] / conffile.y
index 1625122fe762f4a83831eda9c9b3ad55bfd3201b..7837abe651365c12e460f4492db4f39da5f825d6 100644 (file)
@@ -8,6 +8,12 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+/* Bison stupidly redeclares malloc/free unless they are #defined
+ * (or a bunch of madder conditions) */
+#ifndef malloc
+# define malloc malloc
+# define free free
+#endif
 #include "secnet.h"
 #include "conffile_internal.h"
 #include "conffile.yy.h"