mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
From 849e148bbad050d073c062b31f353fc66e277e23 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@gmail.com>
|
|
Date: Tue, 14 Oct 2014 14:38:24 +0200
|
|
Subject: Search for gethostbyname in libnetwork.
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index b4507eb..448fa6d 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -47,6 +47,8 @@ AC_CHECK_TYPE(gid_t, int)
|
|
AC_HEADER_STDC
|
|
AC_HEADER_DIRENT
|
|
|
|
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
|
|
+
|
|
AC_CHECK_FUNCS([fchmod fchown])
|
|
# This is needed for mingw build
|
|
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
|
|
--
|
|
1.8.3.4
|
|
|
|
|
|
From d73864ea6ac27a18ef7897a036791746e2c3a883 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@gmail.com>
|
|
Date: Tue, 14 Oct 2014 14:38:58 +0200
|
|
Subject: gcc2 fixes.
|
|
|
|
|
|
diff --git a/gnu/inttostr.c b/gnu/inttostr.c
|
|
index d4f99cc..c7636d5 100644
|
|
--- a/gnu/inttostr.c
|
|
+++ b/gnu/inttostr.c
|
|
@@ -34,7 +34,6 @@ inttostr (inttype i, char *buf)
|
|
char *p = buf + INT_STRLEN_BOUND (inttype);
|
|
*p = 0;
|
|
|
|
- verify (TYPE_SIGNED (inttype) == inttype_is_signed);
|
|
#if inttype_is_signed
|
|
if (i < 0)
|
|
{
|
|
diff --git a/src/filetypes.h b/src/filetypes.h
|
|
index f80faab..81f0c32 100644
|
|
--- a/src/filetypes.h
|
|
+++ b/src/filetypes.h
|
|
@@ -81,5 +81,3 @@
|
|
#ifndef S_ISLNK
|
|
#define lstat stat
|
|
#endif
|
|
-int lstat ();
|
|
-int stat ();
|
|
diff --git a/src/makepath.c b/src/makepath.c
|
|
index 7631772..83f9c25 100644
|
|
--- a/src/makepath.c
|
|
+++ b/src/makepath.c
|
|
@@ -65,10 +65,10 @@ make_path (char *argpath,
|
|
|
|
if (stat (dirpath, &stats))
|
|
{
|
|
+ char *slash = dirpath;
|
|
tmpmode = MODE_RWX & ~ newdir_umask;
|
|
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
|
|
|
|
- char *slash = dirpath;
|
|
while (*slash == '/')
|
|
slash++;
|
|
while ((slash = strchr (slash, '/')))
|
|
--
|
|
1.8.3.4
|
|
|