Quellcode durchsuchen

* Added checking for paths.h

svn: 1868
Bryan Drewery vor 21 Jahren
Ursprung
Commit
1cbaa7db98
5 geänderte Dateien mit 13 neuen und 5 gelöschten Zeilen
  1. 1 1
      autotools/configure.ac
  2. 3 0
      config.h.in
  3. 3 2
      configure
  4. 3 1
      src/bg.c
  5. 3 1
      src/conf.c

+ 1 - 1
autotools/configure.ac

@@ -77,7 +77,7 @@ AC_HEADER_STAT
 #checkpoint
 AC_CACHE_SAVE 
 AC_CHECK_HEADERS([stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h])
-AC_CHECK_HEADERS([sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h src/ptrace.h])
+AC_CHECK_HEADERS([sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h src/ptrace.h paths.h])
 
 #checkpoint
 AC_CACHE_SAVE

+ 3 - 0
config.h.in

@@ -97,6 +97,9 @@
 /* Define to 1 if you have the <netinet/in.h> header file. */
 #undef HAVE_NETINET_IN_H
 
+/* Define to 1 if you have the <paths.h> header file. */
+#undef HAVE_PATHS_H
+
 /* Define to 1 if you have the `random' function. */
 #undef HAVE_RANDOM
 

+ 3 - 2
configure

@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.39 .
+# From configure.ac Revision: 1.40 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59.
 #
@@ -4759,7 +4759,8 @@ done
 
 
 
-for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h src/ptrace.h
+
+for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h src/ptrace.h paths.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then

+ 3 - 1
src/bg.c

@@ -21,7 +21,9 @@
 #include <unistd.h>
 #include <string.h>
 #include <fcntl.h>
-#include <paths.h>
+#ifdef HAVE_PATHS_H
+# include <paths.h>
+#endif /* HAVE_PATHS_H */
 #include <unistd.h>
 #include <sys/stat.h>
 

+ 3 - 1
src/conf.c

@@ -19,7 +19,9 @@
 #include "socket.h"
 
 #include <errno.h>
-#include <paths.h>
+#ifdef HAVE_PATHS_H
+#  include <paths.h>
+#endif /* HAVE_PATHS_H */
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/stat.h>