gustavo halperin wrote: > Kevin B. McCarty wrote:
>> The _X_SENTINEL macro is defined in /usr/include/X11/Xfuncproto.h >> -- try installing the latest version of the x11proto-core-dev >> package that supplies this file. (Should be version 7.0.4-3 in Sid >> or Etch.) > > OK, I'm using Debian Sarge version, but my X is Xorg from > "www.backports.org/backports.org/" version 6.9..... . This unofficial > APT repository unfortunately haven't the x11proto-core-dev package, > but the file /usr/include/X11/Xfuncproto.h is there but without the > "_X_SENTINEL" definition. Hmm, then try (re-)installing the latest version of the "x-dev" package from backports.org (version 6.9.0.dfsg.1-5bpo2). The Xfuncproto.h in there does include the _X_SENTINEL stuff. > /* _X_SENTINEL BS */ > #if defined(__GNUC__) && (__GNUC__ >= 4) > # define _X_SENTINEL(x) __attribute__ ((__sentinel__(x))) > # define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y))) > #else > # define _X_SENTINEL(x) > # define _X_ATTRIBUTE_PRINTF(x,y) > #endif /* GNUC >= 4 */ If you don't want to install the newer x-dev package from backports, then "fixing" Xlib.h by sticking this at the beginning seems fine to me -- this is the same as the block of code in my version of Xfuncproto.h in Sid. regards, -- Kevin B. McCarty <[EMAIL PROTECTED]> Physics Department WWW: http://www.princeton.edu/~kmccarty/ Princeton University GPG: public key ID 4F83C751 Princeton, NJ 08544 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]