cvs commit: src/contrib/tcp_wrappers tcpd.h scaffold.c

Jeremy C. Reed reed at reedmedia.net
Wed Sep 14 20:41:11 PDT 2005


This is reply to
http://leaf.dragonflybsd.org/mailarchive/commits/2005-09/msg00036.html
The NetBSD version also includes:

#include <stdio.h>

Without that configure script for net-snmp failed with:
. ..
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for TCP wrappers library -lwrap... no
checking for yp_get_default_domain... yes
checking for TCP wrappers library -lwrap linked with -lnsl... no
configure: error: Asked to use libwrap but I couldn't find it.
Looking closer (config.log) I saw:

  /usr/include/tcpd.h:92: error: syntax error before "FILE"

Manually adding to the TCP Wrappers check
#include <stdio.h>
made this work.
I assume that a lot of programs already have FILE defined (such as using 
stdio.h), but many may not.

Should we add
#include <stdio.h>
to src/contrib/tcp_wrappers/tcpd.h
?
(This was not needed previous to this tcpd.h update.)

Thanks for updating anyways as it will help with other builds.

 Jeremy C. Reed

 	  	 	 Media Relations and Publishing Services
	  	 	 http://www.reedmedia.net/




More information about the Commits mailing list