# HG changeset patch # User zas_ # Date 1248976760 0 # Node ID ce8ec81a96012cc7f9e08fc0e2c0f93b9d8153bd # Parent fce6debc934ea9a962874079d7efa4969031ed95 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. diff -r fce6debc934e -r ce8ec81a9601 src/compat.h --- a/src/compat.h Wed Jul 29 21:03:38 2009 +0000 +++ b/src/compat.h Thu Jul 30 17:59:20 2009 +0000 @@ -21,5 +21,13 @@ #endif +/* Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS */ +#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) +#define MAP_ANONYMOUS MAP_ANON +#elif defined(MAP_ANONYMOUS) && !defined(MAP_ANON) +#define MAP_ANON MAP_ANONYMOUS +#endif + + #endif /* COMPAT_H */ /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ diff -r fce6debc934e -r ce8ec81a9601 src/main.c --- a/src/main.c Wed Jul 29 21:03:38 2009 +0000 +++ b/src/main.c Thu Jul 30 17:59:20 2009 +0000 @@ -10,6 +10,20 @@ * This software comes with no warranty of any kind, use at your own risk! */ +#include /* for keyboard values */ +#ifdef HAVE_LIBCHAMPLAIN +#ifdef HAVE_LIBCHAMPLAIN_GTK +#include +#endif +#endif + +#include +#include + +#include +#ifdef G_OS_UNIX +#include +#endif #include "main.h" @@ -36,20 +50,6 @@ #include "histogram.h" #include "pixbuf_util.h" -#include /* for keyboard values */ -#ifdef HAVE_LIBCHAMPLAIN -#ifdef HAVE_LIBCHAMPLAIN_GTK -#include -#endif -#endif - -#include -#include - -#include -#ifdef G_OS_UNIX -#include -#endif gboolean thumb_format_changed = FALSE; static RemoteConnection *remote_connection = NULL;