|
@@ -8,14 +8,14 @@
|
|
|
|
|
|
# June 27, 2001 Manuel Novoa III
|
|
# June 27, 2001 Manuel Novoa III
|
|
#
|
|
#
|
|
-# This script expects TOPDIR and CC (as used in the Makefiles) to be set in
|
|
|
|
-# the environment, and outputs the appropriate $TOPDIR/include/bits/sysnum.h
|
|
|
|
-# corresponding to $TOPDIR/include/asm/unistd.h to stdout.
|
|
|
|
|
|
+# This script expects top_builddir and CC (as used in the Makefiles) to be set in
|
|
|
|
+# the environment, and outputs the appropriate $top_builddir/include/bits/sysnum.h
|
|
|
|
+# corresponding to $top_builddir/include/asm/unistd.h to stdout.
|
|
#
|
|
#
|
|
# Warning!!! This does _no_ error checking!!!
|
|
# Warning!!! This does _no_ error checking!!!
|
|
|
|
|
|
-UNISTD_H_PATH=$TOPDIR/include/asm/unistd.h
|
|
|
|
-INCLUDE_OPTS="-I$TOPDIR/include"
|
|
|
|
|
|
+UNISTD_H_PATH=$top_builddir/include/asm/unistd.h
|
|
|
|
+INCLUDE_OPTS="-I$top_builddir/include"
|
|
|
|
|
|
( echo "#include \"$UNISTD_H_PATH\"" ;
|
|
( echo "#include \"$UNISTD_H_PATH\"" ;
|
|
$CC -E -dN $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines
|
|
$CC -E -dN $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines
|