~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to include/ntp_syscall.h

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-11-26 22:16:37 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091126221637-lbtdp0ax1yg9t0bx
Tags: 1:4.2.4p7+dfsg-4
* Use uname -s instead of dpkg-architecture to found the kernel we're
  running on.  dpkg-architecture is part of dpkg-dev. (Closes: #558145)
* Make the package fail to build on hurd since it does not provided
  the needed system calls for ntpd to work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# include <sys/timex.h>
15
15
#endif
16
16
 
 
17
#if defined(ADJ_NANO) && !defined(MOD_NANO)
 
18
#define MOD_NANO ADJ_NANO
 
19
#endif
 
20
 
 
21
#if defined(ADJ_TAI) && !defined(MOD_TAI)
 
22
#define MOD_TAI ADJ_TAI
 
23
#endif
 
24
 
17
25
#ifndef NTP_SYSCALLS_LIBC
18
26
#ifdef NTP_SYSCALLS_STD
19
27
# define ntp_adjtime(t)         syscall(SYS_ntp_adjtime, (t))
24
32
 
25
33
#  define ntp_adjtime(t)        __adjtimex((t))
26
34
 
 
35
#ifndef HAVE_STRUCT_NTPTIMEVAL
 
36
struct ntptimeval
 
37
{
 
38
  struct timeval time;  /* current time (ro) */
 
39
  long int maxerror;    /* maximum error (us) (ro) */
 
40
  long int esterror;    /* estimated error (us) (ro) */
 
41
};
 
42
#endif
 
43
 
27
44
static inline int
28
45
ntp_gettime(
29
46
        struct ntptimeval *ntv