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
parent
c7837b9a29
commit
0efc3a97f5
|
@ -31,7 +31,7 @@ user_flags()
|
||||||
|
|
||||||
# Look for clock_adjtime().
|
# Look for clock_adjtime().
|
||||||
for d in $dirs; do
|
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
|
for f in $files; do
|
||||||
if grep -q clock_adjtime $f; then
|
if grep -q clock_adjtime $f; then
|
||||||
printf " -DHAVE_CLOCK_ADJTIME"
|
printf " -DHAVE_CLOCK_ADJTIME"
|
||||||
|
|
Loading…
Reference in New Issue