aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-07-24 04:39:43 +0200
committerYang Tse <yangsita@gmail.com>2011-07-24 04:39:43 +0200
commitef2176109fca302ed89193716b62c3a7113552a3 (patch)
tree6b791e483e9022b7657ea9bd06ed1cbdee7958ab /lib/setup_once.h
parent27b8814017a19009b22e4b51aea1ae711ec20459 (diff)
errno.h inclusion conditionally done in setup_once.h
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index b449807db..751102bed 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -42,7 +42,10 @@
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
+
+#ifdef HAVE_ERRNO_H
#include <errno.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>