- include missing netinet/in.h header pointed out by landry@

- don't run configure twice
This commit is contained in:
sthen 2010-11-04 22:13:33 +00:00
parent 626eb47556
commit 706261c00f
2 changed files with 16 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.42 2010/11/04 21:33:49 sthen Exp $
# $OpenBSD: Makefile,v 1.43 2010/11/04 22:13:33 sthen Exp $
COMMENT= database drivers for Sybase/Microsoft SQL Server
V= 0.82
PATCHVER= 20100728
DISTNAME= freetds-$V
REVISION= 1
REVISION= 2
PKGNAME= ${DISTNAME}.1pre${PATCHVER}
PATCHFILES= freetds-post82-${PATCHVER}.diff.gz:0
@ -75,7 +75,7 @@ pre-configure:
cd ${WRKSRC}; \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
./autogen.sh
NOCONFIGURE=1 ./autogen.sh
@${SUBST_CMD} ${WRKSRC}/src/odbc/connectparams.c
post-install:

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-include_tds_h,v 1.1 2010/11/04 22:13:33 sthen Exp $
--- include/tds.h.orig Thu Nov 4 22:07:05 2010
+++ include/tds.h Thu Nov 4 22:07:08 2010
@@ -26,6 +26,9 @@
#include <stdio.h>
#include <time.h>
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif /* HAVE_NET_INET_IN_H */
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif /* HAVE_ARPA_INET_H */