summaryrefslogtreecommitdiff
path: root/proto/x11proto/Xmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'proto/x11proto/Xmd.h')
-rw-r--r--proto/x11proto/Xmd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/x11proto/Xmd.h b/proto/x11proto/Xmd.h
index f3868b36d..96cc08ffd 100644
--- a/proto/x11proto/Xmd.h
+++ b/proto/x11proto/Xmd.h
@@ -64,7 +64,9 @@ SOFTWARE.
defined(__s390x__) || \
defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__)
-# define LONG64 /* 32/64-bit architecture */
+# if !defined(__ILP32__) /* amd64-x32 is 32bit */
+# define LONG64 /* 32/64-bit architecture */
+# endif /* !__ILP32__ */
# endif
/*