Mercurial > hg > toybox
comparison scripts/genconfig.sh @ 519:c6b3bd689d0a
Fix build on slackware-current.
author | Georgi Chorbadzhiyski <gf@unixsol.org> |
---|---|
date | Sun, 04 Mar 2012 01:24:06 -0600 |
parents | 9bcc288a1c54 |
children | 7b85b0a0e9c0 |
comparison
equal
deleted
inserted
replaced
518:e0eed40f4ab1 | 519:c6b3bd689d0a |
---|---|
12 { | 12 { |
13 # Probe for container support on target | 13 # Probe for container support on target |
14 | 14 |
15 echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1 | 15 echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1 |
16 ${CROSS_COMPILE}${CC} -c -xc -o /dev/null - 2>/dev/null << EOF | 16 ${CROSS_COMPILE}${CC} -c -xc -o /dev/null - 2>/dev/null << EOF |
17 #include <sched.h> | 17 #include <linux/sched.h> |
18 int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; | 18 int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; |
19 EOF | 19 EOF |
20 [ $? -eq 0 ] && DEFAULT=y || DEFAULT=n | 20 [ $? -eq 0 ] && DEFAULT=y || DEFAULT=n |
21 echo -e "\tdefault $DEFAULT\n" || return 1 | 21 echo -e "\tdefault $DEFAULT\n" || return 1 |
22 } | 22 } |