summaryrefslogtreecommitdiff
path: root/lib/typesafe.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-12 20:18:12 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-13 13:35:33 +0200
commit2618a52ed307ffe62f45fb345fa5d90a631fc4f6 (patch)
treee4de811dfe49ac12e8d6ba52b604b2f6beb1f159 /lib/typesafe.c
parent899e4095d1b5d3a40114df1a8cd86c6d18dbc9d8 (diff)
*: config.h or zebra.h is the first #include
This is mostly relevant for Solaris, where config.h sets up some #define that affect overall header behaviour, so it needs to be before anything else. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/typesafe.c')
-rw-r--r--lib/typesafe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/typesafe.c b/lib/typesafe.c
index 47a6d0af48..f2ca67b7c6 100644
--- a/lib/typesafe.c
+++ b/lib/typesafe.c
@@ -14,6 +14,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <string.h>