* [BUG] Errors in system includes of OSF/1 V 3.0
@ 1995-06-12 4:00 Klaus Kaempf
1995-06-14 4:00 ` Alan H. Martin
0 siblings, 1 reply; 2+ messages in thread
From: Klaus Kaempf @ 1995-06-12 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] Errors in system includes of OSF/1 V 3.0
1995-06-12 4:00 [BUG] Errors in system includes of OSF/1 V 3.0 Klaus Kaempf
@ 1995-06-14 4:00 ` Alan H. Martin
0 siblings, 0 replies; 2+ messages in thread
From: Alan H. Martin @ 1995-06-14 4:00 UTC (permalink / raw)
In article <DA22x0.MJC@didymus.rmi.de> kkaempf@didymus.rmi.de (Klaus Kaempf) writes:
>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:
...
>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:
This bug is fixed in V4.0.
/AHM/THX
--
Alan Howard Martin AMartin@TLE.ENet.DEC.Com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-06-14 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-12 4:00 [BUG] Errors in system includes of OSF/1 V 3.0 Klaus Kaempf
1995-06-14 4:00 ` Alan H. Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox