summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-05-06 15:05:45 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-05-06 15:05:45 +0200
commitfffa9f0bcd8a8e73c6929938c9deee404c97a7b7 (patch)
tree4732507d1cc55c713e2aefa7e6f9e845e8ecfc53
parenteb44aa27caa25514310829f4b6ea98ddd12d70d2 (diff)
parent3eebc64c2c55a7a946d5d6c76b84dc3ae5197fa1 (diff)
downloadATCD-fffa9f0bcd8a8e73c6929938c9deee404c97a7b7.tar.gz
Merge pull request #254 from jwillemsen/master
In kfreebasd atop is a macro which we need to undefine
-rw-r--r--ACE/ace/config-kfreebsd.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/ACE/ace/config-kfreebsd.h b/ACE/ace/config-kfreebsd.h
index 8906ea452dc..164b06a069f 100644
--- a/ACE/ace/config-kfreebsd.h
+++ b/ACE/ace/config-kfreebsd.h
@@ -1,7 +1,12 @@
#ifndef ACE_CONFIG_KFREEBSD_H
-#define ACE_CONFIG_KFREEBSDH
-#include "ace/config-g++-common.h"
+#define ACE_CONFIG_KFREEBSD_H
+
+// Make sure system defined macro (not related to ACE_OS::atop)
+// is not defined during ACE compilation
+#include <machine/param.h>
+#undef atop
+#include "ace/config-g++-common.h"
/* Uses ctime_r & asctime_r with only two parameters vs. three. */
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R 1
@@ -607,7 +612,6 @@
/* Enable ACE inlining */
#define __ACE_INLINE__ 1
-
-#endif /* ACE_CONFIG_KFREEBSDH */
+#endif /* ACE_CONFIG_KFREEBSD_H */