- Unbreak on sparc64

PR:		124988
Submitted by:	myself
Approved by:	maintainer timeout (14 days)
This commit is contained in:
Pietro Cerutti 2008-07-09 10:46:48 +00:00
parent ebdd18cb79
commit 30a52867d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216594

View file

@ -0,0 +1,20 @@
--- ../src/lib/irs/getaddrinfo.c.orig 2008-06-25 18:33:53.000000000 +0000
+++ ../src/lib/irs/getaddrinfo.c 2008-06-25 18:34:20.000000000 +0000
@@ -332,7 +332,7 @@
pai->ai_family = PF_UNSPEC;
pai->ai_socktype = ANY;
pai->ai_protocol = ANY;
-#ifdef __sparcv9
+#if defined __sparcv9 && !defined(__FreeBSD__)
/*
* clear _ai_pad to preserve binary
* compatibility with previously compiled 64-bit
@@ -365,7 +365,7 @@
}
memcpy(pai, hints, sizeof(*pai));
-#ifdef __sparcv9
+#if defined __sparcv9 && !defined(__FreeBSD__)
/*
* We need to clear _ai_pad to preserve binary
* compatibility. See prior comment.