Remove dependence on <linux/spinlock.h>

Use local definitions for the ioctl codes needed to access the RTC.

Note : not tested.  Some architectures not handled yet.
This commit is contained in:
Richard Curnow
2004-10-11 22:37:04 +00:00
committed by Richard P. Curnow
parent 6ff561dd23
commit 29953d6ddb
4 changed files with 83 additions and 36 deletions

14
configure vendored
View File

@@ -241,17 +241,11 @@ case $SYSTEM in
EXTRA_OBJECTS="sys_linux.o wrap_adjtimex.o rtc_linux.o"
SYSDEFS="-DLINUX"
echo "Configuring for " $SYSTEM
if [ -r /usr/include/linux/spinlock.h ]; then
SYSDEFS="$SYSDEFS -DHAS_SPINLOCK_H"
echo "The system has <spinlock.h>, using that"
else
echo "The system does not have <spinlock.h>, using private definition for spinlock_t"
if [ "${MACHINE}" = "alpha" ]; then
echo "Enabling -mieee"
# FIXME: Should really test for GCC
SYSDEFS="$SYSDEFS -mieee -DALPHA"
fi
if [ "${MACHINE}" = "alpha" ]; then
echo "Enabling -mieee"
# FIXME: Should really test for GCC
SYSDEFS="$SYSDEFS -mieee -DALPHA"
fi
;;
BSD/386-i[3456]86 )