@@ -10110,8 +10110,7 @@ done
10110
10110
10111
10111
10112
10112
10113
-
10114
- for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10113
+ for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10115
10114
do
10116
10115
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10117
10116
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -10262,7 +10261,7 @@ fi
10262
10261
done
10263
10262
10264
10263
10265
- # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10264
+ # On BSD, test for net/if.h will fail unless sys/socket.h
10266
10265
# is included first.
10267
10266
10268
10267
for ac_header in net/if.h
@@ -10331,7 +10330,74 @@ fi
10331
10330
done
10332
10331
10333
10332
10334
- # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10333
+ # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10334
+ # is included first.
10335
+
10336
+ for ac_header in sys/ucred.h
10337
+ do
10338
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10339
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10340
+ $as_echo_n "checking for $ac_header... " >&6; }
10341
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10342
+ $as_echo_n "(cached) " >&6
10343
+ else
10344
+ cat >conftest.$ac_ext <<_ACEOF
10345
+ /* confdefs.h. */
10346
+ _ACEOF
10347
+ cat confdefs.h >>conftest.$ac_ext
10348
+ cat >>conftest.$ac_ext <<_ACEOF
10349
+ /* end confdefs.h. */
10350
+ $ac_includes_default
10351
+ #include <sys/param.h>
10352
+
10353
+
10354
+ #include <$ac_header>
10355
+ _ACEOF
10356
+ rm -f conftest.$ac_objext
10357
+ if { (ac_try="$ac_compile"
10358
+ case "(($ac_try" in
10359
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360
+ *) ac_try_echo=$ac_try;;
10361
+ esac
10362
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10363
+ $as_echo "$ac_try_echo") >&5
10364
+ (eval "$ac_compile") 2>conftest.er1
10365
+ ac_status=$?
10366
+ grep -v '^ *+' conftest.er1 >conftest.err
10367
+ rm -f conftest.er1
10368
+ cat conftest.err >&5
10369
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
+ (exit $ac_status); } && {
10371
+ test -z "$ac_c_werror_flag" ||
10372
+ test ! -s conftest.err
10373
+ } && test -s conftest.$ac_objext; then
10374
+ eval "$as_ac_Header=yes"
10375
+ else
10376
+ $as_echo "$as_me: failed program was:" >&5
10377
+ sed 's/^/| /' conftest.$ac_ext >&5
10378
+
10379
+ eval "$as_ac_Header=no"
10380
+ fi
10381
+
10382
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383
+ fi
10384
+ ac_res=`eval 'as_val=${'$as_ac_Header'}
10385
+ $as_echo "$as_val"'`
10386
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10387
+ $as_echo "$ac_res" >&6; }
10388
+ as_val=`eval 'as_val=${'$as_ac_Header'}
10389
+ $as_echo "$as_val"'`
10390
+ if test "x$as_val" = x""yes; then
10391
+ cat >>confdefs.h <<_ACEOF
10392
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10393
+ _ACEOF
10394
+
10395
+ fi
10396
+
10397
+ done
10398
+
10399
+
10400
+ # At least on IRIX, test for netinet/tcp.h will fail unless
10335
10401
# netinet/in.h is included first.
10336
10402
10337
10403
for ac_header in netinet/in.h
@@ -17277,6 +17343,7 @@ cat confdefs.h >>conftest.$ac_ext
17277
17343
cat >>conftest.$ac_ext <<_ACEOF
17278
17344
/* end confdefs.h. */
17279
17345
#include <sys/socket.h>
17346
+ #include <sys/param.h>
17280
17347
#ifdef HAVE_SYS_UCRED_H
17281
17348
#include <sys/ucred.h>
17282
17349
#endif
@@ -17315,6 +17382,7 @@ cat confdefs.h >>conftest.$ac_ext
17315
17382
cat >>conftest.$ac_ext <<_ACEOF
17316
17383
/* end confdefs.h. */
17317
17384
#include <sys/socket.h>
17385
+ #include <sys/param.h>
17318
17386
#ifdef HAVE_SYS_UCRED_H
17319
17387
#include <sys/ucred.h>
17320
17388
#endif
0 commit comments