comparison src/compat.h @ 1711:ce8ec81a9601

Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS. Make each an alias of other to be sure. issue reported by Martin Proetzsch.
author zas_
date Thu, 30 Jul 2009 17:59:20 +0000
parents ee2b66a09a03
children 956aab097ea7
comparison
equal deleted inserted replaced
1710:fce6debc934e 1711:ce8ec81a9601
19 #if !GTK_CHECK_VERSION(2,12,0) 19 #if !GTK_CHECK_VERSION(2,12,0)
20 #define gtk_widget_set_tooltip_text(widget, text) /* ignored */ 20 #define gtk_widget_set_tooltip_text(widget, text) /* ignored */
21 #endif 21 #endif
22 22
23 23
24 /* Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS */
25 #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
26 #define MAP_ANONYMOUS MAP_ANON
27 #elif defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
28 #define MAP_ANON MAP_ANONYMOUS
29 #endif
30
31
24 #endif /* COMPAT_H */ 32 #endif /* COMPAT_H */
25 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ 33 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */