summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2014-02-12 19:22:47 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2014-02-12 19:22:47 +0000
commit1ae0637c943f44ac60453c94fb3af24192cccf7f (patch)
tree10ffd9808b365220c8c92b3fc17d236c81062934 /file_io
parentaa6e629f3dbc5210f6be5d2c25d27b1ba7655394 (diff)
downloadapr-1ae0637c943f44ac60453c94fb3af24192cccf7f.tar.gz
Correct nonsense test for non-exported sys/stat.h autoconf flag
Partial backport of: r1567722 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1567726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/mktemp.c2
-rw-r--r--file_io/win32/open.c2
-rw-r--r--file_io/win32/pipe.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/file_io/unix/mktemp.c b/file_io/unix/mktemp.c
index 28aaf90e2..7530a2510 100644
--- a/file_io/unix/mktemp.c
+++ b/file_io/unix/mktemp.c
@@ -74,7 +74,7 @@
#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#if APR_HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if APR_HAVE_FCNTL_H
diff --git a/file_io/win32/open.c b/file_io/win32/open.c
index b668645bb..3c00bfc79 100644
--- a/file_io/win32/open.c
+++ b/file_io/win32/open.c
@@ -26,7 +26,7 @@
#endif
#include <winbase.h>
#include <string.h>
-#if APR_HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#include "apr_arch_misc.h"
diff --git a/file_io/win32/pipe.c b/file_io/win32/pipe.c
index 79138e7f5..f240eba5c 100644
--- a/file_io/win32/pipe.c
+++ b/file_io/win32/pipe.c
@@ -26,7 +26,7 @@
#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#if APR_HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if APR_HAVE_PROCESS_H