forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux/time.h: glibc time.h header file compatibility fixes
Fixes these userspace compile errors and warnings when glibc time.h is included before linux/time.h: linux/time.h:9:8: error: redefinition of ‘struct timespec’ linux/time.h:15:8: error: redefinition of ‘struct timeval’ linux/time.h:20:8: error: redefinition of ‘struct timezone’ linux/time.h:30:0: warning: "ITIMER_REAL" redefined linux/time.h:31:0: warning: "ITIMER_VIRTUAL" redefined linux/time.h:32:0: warning: "ITIMER_PROF" redefined linux/time.h:34:8: error: redefinition of ‘struct itimerspec’ linux/time.h:39:8: error: redefinition of ‘struct itimerval’ linux/time.h:67:0: warning: "TIMER_ABSTIME" redefined <linux/time.h> conflicts with glibc <time.h> is the root cause of several compatibility problems in uapi headers. Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Michael Kerrisk <mtk.manpages@gmail.com>
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters