summaryrefslogtreecommitdiffstats
path: root/util/include/platforms
diff options
context:
space:
mode:
authorGravatar damitha2011-06-10 00:01:57 +0000
committerGravatar damitha2011-06-10 00:01:57 +0000
commitd9dd3688b99f99898428f073fd810cc6403e709b (patch)
tree412132c2ed2b03953f7729f8fbd8c32b3de6cf95 /util/include/platforms
parenta0d059fd9e105e7ea9cdd40cd0e38a625f30e77f (diff)
downloadaxis2c-d9dd3688b99f99898428f073fd810cc6403e709b.tar.gz
axis2c-d9dd3688b99f99898428f073fd810cc6403e709b.tar.bz2
Fixed the build issue by removing && and moving into ifdef and ifndef statements
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1134136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util/include/platforms')
-rw-r--r--util/include/platforms/unix/axutil_unix.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/include/platforms/unix/axutil_unix.h b/util/include/platforms/unix/axutil_unix.h
index 1829e06..a0b00dc 100644
--- a/util/include/platforms/unix/axutil_unix.h
+++ b/util/include/platforms/unix/axutil_unix.h
@@ -121,9 +121,11 @@ extern "C"
#include "axutil_date_time_util_unix.h"
/* for file access handling */
-#ifdef HAVE_UNISTD_H && !defined __APPLE__
+#ifdef HAVE_UNISTD_H
+#ifndef __APPLE__
#include <unistd.h>
-#endif /*HAVE_UNISTD_H && !defined __APPLE__*/
+#endif /* ifndef __APPLE__ */
+#endif /* HAVE_UNISTD_H */
/* network handling */
#include <sys/socket.h>