Răsfoiți Sursa

2008-10-21 Bill Holmes <[email protected]>

	* configure.in : Adding a auto configure check for dirent.h.

	* support/Makefile.am : For generation of map.c adding preprocessor
	 checks for sys/time.h, unistd.h, dirent.h and utime.h.

	* support/map.c : Re-run 'make refresh' to add preprocessor checks
	 for sys/time.h, unistd.h, dirent.h and utime.h.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=118010
Bill Holmes 17 ani în urmă
părinte
comite
690fe2e90d
5 a modificat fișierele cu 29 adăugiri și 4 ștergeri
  1. 6 0
      ChangeLog
  2. 1 0
      configure.in
  3. 10 0
      support/ChangeLog
  4. 4 4
      support/Makefile.am
  5. 8 0
      support/map.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2008-11-05  Bill Holmes  <[email protected]>
+
+	* configure.in : Adding a auto configure check for dirent.h.
+
+	Code is contributed under MIT/X11 license.
+
 2008-10-30  Jonathan Pryor  <[email protected]>
 
 	* Makefile.am: Build `docs` after `runtime`, so that it can depend

+ 1 - 0
configure.in

@@ -1475,6 +1475,7 @@ if test x$platform_win32 = xno; then
 	dnl *********************************
 	AC_CHECK_HEADERS(sys/time.h)
 	AC_CHECK_HEADERS(sys/param.h)
+	AC_CHECK_HEADERS(dirent.h)
 
 	dnl *********************************
 	dnl *** Check for Console 2.0 I/O ***

+ 10 - 0
support/ChangeLog

@@ -1,3 +1,13 @@
+2008-11-05  Bill Holmes  <[email protected]>
+
+	* Makefile.am : For generation of map.c adding preprocessor
+	  checks for sys/time.h, unistd.h, dirent.h and utime.h.
+
+	* map.c : Re-run 'make refresh' to add preprocessor checks
+	  for sys/time.h, unistd.h, dirent.h and utime.h.
+
+	Code is contributed under MIT/X11 license.
+
 2008-10-15  Jonathan Pryor  <[email protected]>
 
 	* time.c: Add Mono_Posix_Syscall_nanosleep().

+ 4 - 4
support/Makefile.am

@@ -123,21 +123,21 @@ refresh:
 	--impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE   \
 	--impl-header="<sys/types.h>"                         \
 	--impl-header="<sys/stat.h>"                          \
-	--impl-header="<sys/time.h>"                          \
+	--autoconf-header="<sys/time.h>"                      \
 	--autoconf-header="<sys/poll.h>"                      \
 	--autoconf-header="<sys/wait.h>"                      \
 	--autoconf-header="<sys/statvfs.h>"                   \
 	--autoconf-header="<sys/xattr.h>"                     \
 	--autoconf-header="<sys/mman.h>"                      \
-	--impl-header="<unistd.h>"                            \
+	--autoconf-header="<unistd.h>"                        \
 	--impl-header="<fcntl.h>"                             \
 	--impl-header="<signal.h>"                            \
 	--autoconf-header="<poll.h>"                          \
 	--autoconf-header="<grp.h>"                           \
 	--impl-header="<errno.h>"                             \
 	--autoconf-header="<syslog.h>"                        \
-	--impl-header="<dirent.h>"                            \
-	--impl-header="<utime.h>"                             \
+	--autoconf-header="<dirent.h>"                        \
+	--autoconf-header="<utime.h>"                         \
 	--impl-header="<time.h>"                              \
 	--impl-header="\"mph.h\""                             \
 	--rename-member=st_atime=st_atime_                    \

+ 8 - 0
support/map.c

@@ -27,7 +27,9 @@
  */
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif /* ndef HAVE_SYS_TIME_H */
 #ifdef HAVE_SYS_POLL_H
 #include <sys/poll.h>
 #endif /* ndef HAVE_SYS_POLL_H */
@@ -43,7 +45,9 @@
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif /* ndef HAVE_SYS_MMAN_H */
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif /* ndef HAVE_UNISTD_H */
 #include <fcntl.h>
 #include <signal.h>
 #ifdef HAVE_POLL_H
@@ -56,8 +60,12 @@
 #ifdef HAVE_SYSLOG_H
 #include <syslog.h>
 #endif /* ndef HAVE_SYSLOG_H */
+#ifdef HAVE_DIRENT_H
 #include <dirent.h>
+#endif /* ndef HAVE_DIRENT_H */
+#ifdef HAVE_UTIME_H
 #include <utime.h>
+#endif /* ndef HAVE_UTIME_H */
 #include <time.h>
 #include "mph.h"