Fix gethostbyname usage.

PR:		ports/186509
Submitted by:	Lutz Rabing <lutz.rabing@omc.net>
This commit is contained in:
Alex Dupre 2014-02-11 13:40:34 +00:00
parent 4c258046ef
commit 0b3d229e9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343739
3 changed files with 13 additions and 15 deletions

View file

@ -3,7 +3,7 @@
PORTNAME?= mysql
PORTVERSION= 5.1.73
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= MySQL-5.1

View file

@ -1,6 +1,15 @@
--- configure.orig Sat May 26 12:22:14 2007
+++ configure Fri Jun 1 07:53:46 2007
@@ -26935,8 +26933,8 @@
--- configure.orig 2013-11-04 18:55:16.000000000 +0000
+++ configure 2014-02-11 13:34:06.586185156 +0000
@@ -22206,7 +22206,7 @@
int
main ()
{
-return gethostbyname_r ();
+return incompatible_gethostbyname_r ();
;
return 0;
}
@@ -24768,8 +24768,8 @@
# Some system specific hacks
#

View file

@ -1,11 +0,0 @@
--- include/my_net.h.orig 2013-05-06 10:44:34.000000000 +0200
+++ include/my_net.h 2013-05-06 10:45:11.000000000 +0200
@@ -110,7 +110,7 @@
int buflen, int *h_errnop);
#define my_gethostbyname_r_free()
#else
-#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E))
+#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E),NULL)
#define my_gethostbyname_r_free()
#endif /* !defined(HAVE_GETHOSTBYNAME_R) */