summaryrefslogtreecommitdiff
path: root/util/bsetroot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/bsetroot.cc')
-rw-r--r--util/bsetroot.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/bsetroot.cc b/util/bsetroot.cc
index cb37cb6b..dce732aa 100644
--- a/util/bsetroot.cc
+++ b/util/bsetroot.cc
@@ -2,10 +2,13 @@
# include "../config.h"
#endif // HAVE_CONFIG_H
-#ifdef STDC_HEADERS
-# include <string.h>
+#ifdef HAVE_STDLIB_H
# include <stdlib.h>
-#endif // STDC_HEADERS
+#endif // HAVE_STDLIB_H
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif // HAVE_STRING_H
#ifdef HAVE_STDIO_H
# include <stdio.h>