summaryrefslogtreecommitdiffstats
path: root/lib/zconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zconfig.h')
-rw-r--r--lib/zconfig.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/zconfig.h b/lib/zconfig.h
index afde09c6..f1bd6f78 100644
--- a/lib/zconfig.h
+++ b/lib/zconfig.h
@@ -25,10 +25,18 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
-#if _GNU_SOURCE
-#include <features.h>
+#undef _THREAD_SAFE
+#define _THREAD_SAFE 1
+
+#undef _REENTRANT
+#define _REENTRANT 1
+
+#ifdef _FEATURES_H
+#error Features defined
#endif
+#include <features.h>
+
#endif /* HAVE_CONFIG_H */
#endif /* _ZEBRA_CONFIG_H */