Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 1996 09:09:12 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        ponds!freefall.cdrom.com!freebsd-hackers
Subject:   netdb.h and -traditional (more....)
Message-ID:  <199608161309.JAA00498@lakes.water.net>

next in thread | raw e-mail | index | archive | help


Well - I added -DNO_ANSI_KEYWORDS - which, examining cdefs.h, should
have "removed" 'const' by #define'ing it away...

Didn't work.

So, I made the following change to netdb.h - it's ugly, but it
does the job (recall that the job is I'd like to compile some
ancient pre-ANSI code, so I don't have the luxury of not using -traditional):

*** netdb.h.ori Tue Jul 16 22:10:41 1996
--- netdb.h     Thu Aug 15 13:04:22 1996
***************
*** 136,142 ****
--- 136,146 ----
  struct servent        *getservbyport __P((int, const char *));
  struct servent        *getservent __P((void));
  void          herror __P((const char *));
+ #ifdef __STDC__
  const char    *hstrerror __P((int));
+ #else
+ char  *hstrerror __P((int));
+ #endif
  void          sethostent __P((int));
  /* void               sethostfile __P((const char *)); */
  void          setnetent __P((int));



	- Dave Rivers -





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608161309.JAA00498>