Description: SHARED may be defined in sys/mman.h Better solution might be proper CFLAGS Index: icon/src/h/xwin.h =================================================================== --- icon.orig/src/h/xwin.h 2002-09-13 21:04:32.000000000 +0000 +++ icon/src/h/xwin.h 2013-01-28 05:41:14.988907554 +0000 @@ -74,6 +74,9 @@ #define WMAXCOLORS 256 #define MAXCOLORNAME 40 #define MAXDISPLAYNAME 64 +#ifdef SHARED +#undef SHARED +#endif #define SHARED 0 #define MUTABLE 1 #define NUMCURSORSYMS 78