diff options
author | Bill Holmes <holmes@mono-cvs.ximian.com> | 2008-11-05 21:21:01 +0300 |
---|---|---|
committer | Bill Holmes <holmes@mono-cvs.ximian.com> | 2008-11-05 21:21:01 +0300 |
commit | 690fe2e90d62d311b1d6331ebc76af5eb47bf555 (patch) | |
tree | 6364d59612787cc47d1dd03c15759a6e24489c8b /support | |
parent | 89e7e6230e212304e7c38c3e72a6a7937ee7e607 (diff) |
2008-10-21 Bill Holmes <billholmes54@gmail.com>
* 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
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 10 | ||||
-rw-r--r-- | support/Makefile.am | 8 | ||||
-rw-r--r-- | support/map.c | 8 |
3 files changed, 22 insertions, 4 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index d750a96a623..b108db0da31 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,13 @@ +2008-11-05 Bill Holmes <billholmes54@gmail.com> + + * 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 <jpryor@novell.com> * time.c: Add Mono_Posix_Syscall_nanosleep(). diff --git a/support/Makefile.am b/support/Makefile.am index 29c5ddfdca1..8f7e9065761 100644 --- a/support/Makefile.am +++ b/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_ \ diff --git a/support/map.c b/support/map.c index d4f6b217217..0fc5255640b 100644 --- a/support/map.c +++ b/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" |