diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-05-07 21:48:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-05-07 21:48:29 +0000 |
commit | d3b4df0b173c3ad5f1e8f5d9f6a5df3518322129 (patch) | |
tree | 06ab7e232495d0a29689738152288c532baa5b79 | |
parent | 36dc9ae8cdee7cb96bb5f04c07c73c4dd5dc13e0 (diff) | |
download | gcc-d3b4df0b173c3ad5f1e8f5d9f6a5df3518322129.zip gcc-d3b4df0b173c3ad5f1e8f5d9f6a5df3518322129.tar.gz gcc-d3b4df0b173c3ad5f1e8f5d9f6a5df3518322129.tar.bz2 |
mksysinfo: Define CLONE flags.
From-SVN: r210189
-rw-r--r-- | libgo/config.h.in | 3 | ||||
-rwxr-xr-x | libgo/configure | 2 | ||||
-rw-r--r-- | libgo/configure.ac | 2 | ||||
-rwxr-xr-x | libgo/mksysinfo.sh | 7 |
4 files changed, 12 insertions, 2 deletions
diff --git a/libgo/config.h.in b/libgo/config.h.in index ca5dcb2..9e622c6 100644 --- a/libgo/config.h.in +++ b/libgo/config.h.in @@ -192,6 +192,9 @@ /* Define to 1 if you have the `renameat' function. */ #undef HAVE_RENAMEAT +/* Define to 1 if you have the <sched.h> header file. */ +#undef HAVE_SCHED_H + /* Define to 1 if you have the `sem_timedwait' function. */ #undef HAVE_SEM_TIMEDWAIT diff --git a/libgo/configure b/libgo/configure index c477021..23ef791 100755 --- a/libgo/configure +++ b/libgo/configure @@ -14622,7 +14622,7 @@ no) ;; esac -for ac_header in sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h +for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/libgo/configure.ac b/libgo/configure.ac index e4e4b60..8f55cac 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -475,7 +475,7 @@ no) ;; esac -AC_CHECK_HEADERS(sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h) +AC_CHECK_HEADERS(sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h) AC_CHECK_HEADERS([linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h], [], [], [#ifdef HAVE_SYS_SOCKET_H diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 025729c..c4c226b 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -163,6 +163,9 @@ cat > sysinfo.c <<EOF #if defined(HAVE_NETINET_ICMP6_H) #include <netinet/icmp6.h> #endif +#if defined(HAVE_SCHED_H) +#include <sched.h> +#endif /* Constants that may only be defined as expressions on some systems, expressions too complex for -fdump-go-spec to handle. These are @@ -1130,6 +1133,10 @@ grep '^type _inotify_event ' gen-sysinfo.go | \ -e 's/\[0\]byte/[0]int8/' \ >> ${OUT} +# The GNU/Linux CLONE flags. +grep '^const _CLONE_' gen-sysinfo.go | \ + sed -e 's/^\(const \)_\(CLONE_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} + # The Solaris 11 Update 1 _zone_net_addr_t struct. grep '^type _zone_net_addr_t ' gen-sysinfo.go | \ sed -e 's/_in6_addr/[16]byte/' \ |