summaryrefslogtreecommitdiff
path: root/ace/config-linux-common.h
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-12-13 18:54:43 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-12-13 18:54:43 +0000
commit13d38d701a3e7b9a50819c07897b3e46b260f01d (patch)
treeba451047df1dc31cd48d03fd70a761c6a2ab3c87 /ace/config-linux-common.h
parent797158ba08cf368c653b5746a376b2faf542c646 (diff)
downloadATCD-13d38d701a3e7b9a50819c07897b3e46b260f01d.tar.gz
ChangeLogTag:Mon Dec 13 10:34:24 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/config-linux-common.h')
-rw-r--r--ace/config-linux-common.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h
index e5c1c3300ea..8effac168d9 100644
--- a/ace/config-linux-common.h
+++ b/ace/config-linux-common.h
@@ -358,19 +358,18 @@
// Enables use of POSIX termios struct
#define ACE_USES_NEW_TERMIOS
-#include /**/ "ace/post.h"
-
#if !defined (ACE_GETNAME_RETURNS_RANDOM_SIN_ZERO)
-// detect if getsockname() and getpeername() returns
-// random values in the sin_zero field by evaluation
-// of the kernel version. since version 2.5.47
-// this problem is fixed.
+// Detect if getsockname() and getpeername() returns random values in
+// the sin_zero field by evaluation of the kernel version. Since
+// version 2.5.47 this problem is fixed.
#include <linux/version.h>
# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47))
# define ACE_GETNAME_RETURNS_RANDOM_SIN_ZERO 0
# else
# define ACE_GETNAME_RETURNS_RANDOM_SIN_ZERO 1
-# endif /* (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,0)) */
-#endif /* ACE_GETNAME_RETURNS_RANDOM_SIN_ZERO */
+# endif /* (LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,47)) */
+#endif /* ACE_GETNAME_RETURNS_RANDOM_SIN_ZERO */
+
+#include /**/ "ace/post.h"
#endif /* ACE_LINUX_COMMON_H */