This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glib.h does not work with sys/cdefs.h


Hi,

glob.h does not work if sys/cdefs.h is included before. Compile the
following short example:


#define _FILE_OFFSET_BITS 64
#include <sys/cdefs.h>
#include <glob.h>
int main () { return 0;}


and you will get:

/usr/include/glob.h:193: error: parse error before "asm"
/usr/include/glob.h:197: error: parse error before "asm"

The generated code is:

extern int glob (__const char *__restrict __pattern, int __flags, int (*__errfunc) (__const char *, int), glob_t *__restrict __pglob) __attribute__ ((__nothrow__)) __asm__ ("glob64");

Any ideas how to fix this?

 Thanks,
  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Maxfeldstr. 5                 D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]