From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,d070b5fe97eac646,start X-Google-Attributes: gidfee84,public From: kkaempf@didymus.rmi.de (Klaus Kaempf) Subject: [BUG] Errors in system includes of OSF/1 V 3.0 Date: 1995/06/12 Message-ID: #1/1 X-Deja-AN: 104317366 organization: proGIS Softwareentwicklung keywords: include prototypes osf1v3 newsgroups: comp.unix.osf.osf1 summary: Wrong prototype declarations in include files Having included 'sys/ioctl.h' when compiling with 'gcc -Wall' I still got that annoying warning: implicit declaration of function `ioctl'. Looking in sys/ioctl.h reveals the following: #ifndef _KERNEL #ifdef _NO_PROTO extern int ioctl(); #else #if defined(__STDC__) || defined(__cplusplus) #if defined(__cplusplus) extern "C" { extern int ioctl(int, int, ...); } #endif #endif #endif /* _NO_PROTO */ #endif /* _KERNEL */ So we will *never* get a prototype declaration with an ansi-c compiler :-( If someone at digital is listening, how about changing this stuff to: ... #if defined(__STDC__) || defined(__cplusplus) #if defined(__cplusplus) extern "C" { #endif extern int ioctl(int, int, ...); #if defined(__cplusplus) } #endif #endif ... No, I don't know how many of the 815 include files of osf/1 also have this error and I *won't* check :-{ Klaus -- proGIS Software E-Mail: kkaempf@didymus.rmi.de Dipl.-Inform. Klaus K�mpf Fax: 0241-47067-29 Jakobstr. 117 Voice: 0241-47067-11 D-52064 Aachen GERMANY