summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 837ed020..a8e2659c 100644
--- a/defines.h
+++ b/defines.h
@@ -1,6 +1,11 @@
#ifndef _DEFINES_H
#define _DEFINES_H
+/* Some platforms need this for the _r() functions */
+#ifndef _REENTRANT
+# define _REENTRANT 1
+#endif
+
/* Necessary headers */
#include <sys/types.h> /* For [u]intxx_t */