Skip to content

Commit

Permalink
Make <sys/timex.h> compatible with C++
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed May 21, 2010
1 parent 33b8d90 commit 5b08ac5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2010-05-20 Andreas Schwab <schwab@redhat.com>

* sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.

2010-05-17 Luis Machado <luisgpm@br.ibm.com>

POWER7 optimizations.
Expand Down
6 changes: 3 additions & 3 deletions sysdeps/unix/sysv/linux/sys/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ __BEGIN_DECLS
extern int __adjtimex (struct timex *__ntx) __THROW;
extern int adjtimex (struct timex *__ntx) __THROW;

#if defined __GNUC__ && __GNUC__ >= 2
extern int ntp_gettime (struct ntptimeval *__ntv)
__asm__ ("ntp_gettimex") __THROW;
#ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH (ntp_gettime, (struct ntptimeval *__ntv),
ntp_gettimex);
#else
extern int ntp_gettimex (struct ntptimeval *__ntv) __THROW;
# define ntp_gettime ntp_gettimex
Expand Down

0 comments on commit 5b08ac5

Please sign in to comment.