mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
added fix for getaddrinfo.h
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
diff -urN cvs-1.12.13/configure cvs-1.12.13-haiku/configure
|
||||
--- cvs-1.12.13/configure 2005-10-03 13:36:42.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/configure 2008-09-29 13:33:37.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/configure 2008-09-30 18:38:24.000000000 +0000
|
||||
@@ -37138,7 +37138,7 @@
|
||||
rm -f conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
@@ -12,7 +12,7 @@ diff -urN cvs-1.12.13/configure cvs-1.12.13-haiku/configure
|
||||
/* confdefs.h. */
|
||||
diff -urN cvs-1.12.13/configure.in cvs-1.12.13-haiku/configure.in
|
||||
--- cvs-1.12.13/configure.in 2005-10-03 13:34:45.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/configure.in 2008-09-29 13:32:01.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/configure.in 2008-09-30 18:38:24.000000000 +0000
|
||||
@@ -515,7 +515,7 @@
|
||||
|
||||
# Try to find connect and gethostbyname.
|
||||
@@ -22,21 +22,44 @@ diff -urN cvs-1.12.13/configure.in cvs-1.12.13-haiku/configure.in
|
||||
AC_DEFINE(HAVE_CONNECT, 1,
|
||||
[Define if you have the connect function.]))
|
||||
dnl no need to search nsl for gethostbyname here since we should have
|
||||
diff -urN cvs-1.12.13/lib/getaddrinfo.h cvs-1.12.13-haiku/lib/getaddrinfo.h
|
||||
--- cvs-1.12.13/lib/getaddrinfo.h 2005-09-08 15:55:53.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/lib/getaddrinfo.h 2008-09-30 19:33:49.000000000 +0000
|
||||
@@ -26,7 +26,7 @@
|
||||
# include <netdb.h>
|
||||
|
||||
# if !HAVE_GETADDRINFO
|
||||
-
|
||||
+#ifndef __HAIKU__
|
||||
/* Structure to contain information about address of a service provider. */
|
||||
struct addrinfo
|
||||
{
|
||||
@@ -61,6 +61,8 @@
|
||||
# define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */
|
||||
# define EAI_MEMORY -10 /* Memory allocation failure. */
|
||||
# define EAI_SYSTEM -11 /* System error returned in `errno'. */
|
||||
+#endif
|
||||
+
|
||||
# define EAI_OVERFLOW -12 /* Argument buffer overflow. */
|
||||
# ifdef __USE_GNU
|
||||
# define EAI_INPROGRESS -100 /* Processing request in progress. */
|
||||
diff -urN cvs-1.12.13/lib/getpass.c cvs-1.12.13-haiku/lib/getpass.c
|
||||
--- cvs-1.12.13/lib/getpass.c 2005-09-19 21:12:21.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/lib/getpass.c 2008-09-29 12:14:49.000000000 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
+++ cvs-1.12.13-haiku/lib/getpass.c 2008-09-30 19:53:05.000000000 +0000
|
||||
@@ -104,8 +104,9 @@
|
||||
else
|
||||
{
|
||||
/* We do the locking ourselves. */
|
||||
- __fsetlocking (tty, FSETLOCKING_BYCALLER);
|
||||
+// __fsetlocking (tty, FSETLOCKING_BYCALLER);
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
__fsetlocking (tty, FSETLOCKING_BYCALLER);
|
||||
-
|
||||
+#endif
|
||||
out = in = tty;
|
||||
}
|
||||
|
||||
diff -urN cvs-1.12.13/lib/stdbool_.h cvs-1.12.13-haiku/lib/stdbool_.h
|
||||
--- cvs-1.12.13/lib/stdbool_.h 2005-05-23 17:44:32.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/lib/stdbool_.h 2008-09-29 13:38:31.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/lib/stdbool_.h 2008-09-30 18:38:24.000000000 +0000
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
|
||||
@@ -55,15 +78,3 @@ diff -urN cvs-1.12.13/lib/stdbool_.h cvs-1.12.13-haiku/lib/stdbool_.h
|
||||
# if !@HAVE__BOOL@
|
||||
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1)
|
||||
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */
|
||||
diff -urN cvs-1.12.13/src/buffer.c cvs-1.12.13-haiku/src/buffer.c
|
||||
--- cvs-1.12.13/src/buffer.c 2005-10-02 15:17:20.000000000 +0000
|
||||
+++ cvs-1.12.13-haiku/src/buffer.c 2008-09-29 12:16:37.000000000 +0000
|
||||
@@ -2019,7 +2019,7 @@
|
||||
&& sb.st_uid == devnull.st_uid
|
||||
&& sb.st_gid == devnull.st_gid
|
||||
&& sb.st_size == devnull.st_size
|
||||
- && sb.st_blocks == devnull.st_blocks
|
||||
+// && sb.st_blocks == devnull.st_blocks
|
||||
&& sb.st_blksize == devnull.st_blksize);
|
||||
if (isdevnull)
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user