mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 08:50:54 +00:00
Use the host install program if possible.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2479 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ec9a6dd0ed
commit
56e406490a
6 changed files with 71 additions and 31 deletions
21
which_lib.c
21
which_lib.c
|
@ -53,6 +53,12 @@
|
|||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#if defined(HAVE_DIRENT_H)
|
||||
# include <dirent.h>
|
||||
#elif defined(HAVE_SYS_DIR_H)
|
||||
|
@ -79,13 +85,14 @@
|
|||
|
||||
/* determine filesystem max path length */
|
||||
|
||||
#ifdef _POSIX_VERSION
|
||||
# include <limits.h> /* for PATH_MAX */
|
||||
|
||||
#ifdef _POSIX_VERSION
|
||||
# include <utime.h>
|
||||
#else
|
||||
#if HAVE_SYS_PARAM_H
|
||||
# include <sys/param.h> /* for MAXPATHLEN */
|
||||
#endif
|
||||
# if HAVE_SYS_PARAM_H
|
||||
# include <sys/param.h> /* for MAXPATHLEN */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef PATH_MAX
|
||||
|
@ -104,12 +111,6 @@
|
|||
#include <sys/file.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#define PATH_SEP "/"
|
||||
|
||||
/* Array of strings that are the library paths passed to compiler */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue