summaryrefslogtreecommitdiffstats
path: root/lib/misc.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
commitf9956b9524ddafdb9d0cec042213eaa8229aad8c (patch)
treebf362c892837ef3f5a6a4d4265eb18e1b47ccf33 /lib/misc.h
parent9470cb2c32eab220f796b1438b787528272cbe84 (diff)
downloadquagga-ex15p.tar.bz2
quagga-ex15p.tar.xz
Bring "ex" version up to date with 0.99.18ex15p
Release: 0.99.18ex15p -- Pipework Branch Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.)
Diffstat (limited to 'lib/misc.h')
-rw-r--r--lib/misc.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/misc.h b/lib/misc.h
index 1c53f2e2..f5f9d9f6 100644
--- a/lib/misc.h
+++ b/lib/misc.h
@@ -22,17 +22,37 @@
#ifndef _ZEBRA_MISC_H
#define _ZEBRA_MISC_H
+/* "zconfig.h" is included at the start of this "misc.h", and at the start
+ * of "zebra.h". This ensures that we get <features.h> defined early, so
+ * that all other #includes get the same set of features.
+ */
+
#include "zconfig.h"
+/* This is horrible... but for some purposes wish to turn *off* __USE_GNU.
+ *
+ * e.g: to persuade <string.h> to give POSIX version of strerror_r !!!
+ */
+#ifdef NO_USE_GNU
+# undef NO_USE_GNU
+# ifdef __USE_GNU
+# define NO_USE_GNU 1
+# undef __USE_GNU
+# endif
+#endif
+
/* Stuff which we generally expect to have */
-#include <limits.h>
+
#include <string.h>
+#include <limits.h>
+#include <unistd.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
+#include "confirm.h"
#include "zassert.h"
/* Bit number to bit mask */