Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: kkaempf@didymus.rmi.de (Klaus Kaempf)
Subject: [BUG] Errors in system includes of OSF/1 V 3.0
Date: 1995/06/12	[thread overview]
Message-ID: <DA22x0.MJC@didymus.rmi.de> (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



             reply	other threads:[~1995-06-12  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-12  4:00 Klaus Kaempf [this message]
1995-06-14  4:00 ` [BUG] Errors in system includes of OSF/1 V 3.0 Alan H. Martin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox