]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix "implicit declaration" warning for ioctl on non-WINNT systems.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 11 Jan 2003 00:41:55 +0000 (01:41 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 11 Jan 2003 00:41:55 +0000 (01:41 +0100)
bk: 3e1f6853tb5Yk32c1ZLhRArNDUmWIg

ntpd/refclock_hopfpci.c

index a9deb21c17dca9b7329792669e183131fc09591c..f05229facad344666cfcee3f0c43282ed0dc01b3 100644 (file)
@@ -48,6 +48,7 @@
 
 #ifndef SYS_WINNT
 # include <sys/ipc.h>
+# include <sys/ioctl.h>
 # include <assert.h>
 # include <unistd.h>
 # include <stdio.h>
@@ -212,7 +213,7 @@ hopfpci_poll(
        up = (struct hopfpciTime *)pp->unitptr;
 
 #ifndef SYS_WINNT
-       ioctl(fd,HOPF_CLOCK_GET_UTC,&m_time);
+       ioctl(fd,HOPF_CLOCK_GET_UTC,&m_time);
 #else
        GetHopfSystemTime(&m_time);
 #endif