Fix detection of clock_adjtime

On some platforms clock_adjtime is defined in timex.h instead of time.h
Due to this fact the detection in incdefs.h was failing.
Add timex.h into the list of searched files.

Signed-off-by: Petr Kulhavy <brain@jikos.cz>
master
Petr Kulhavy 2017-05-15 10:17:53 +02:00 committed by Richard Cochran
parent c7837b9a29
commit 0efc3a97f5
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ user_flags()
# Look for clock_adjtime().
for d in $dirs; do
files=$(find $d -type f -name time.h)
files=$(find $d -type f -name time.h -o -name timex.h)
for f in $files; do
if grep -q clock_adjtime $f; then
printf " -DHAVE_CLOCK_ADJTIME"