@@ -10080,8 +10080,7 @@ done
10080
10080
10081
10081
10082
10082
10083
-
10084
- 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 kernel/OS.h kernel/image.h SupportDefs.h
10083
+ 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 kernel/OS.h kernel/image.h SupportDefs.h
10085
10084
do
10086
10085
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10087
10086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -10232,7 +10231,7 @@ fi
10232
10231
done
10233
10232
10234
10233
10235
- # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10234
+ # On BSD, test for net/if.h will fail unless sys/socket.h
10236
10235
# is included first.
10237
10236
10238
10237
for ac_header in net/if.h
@@ -10301,7 +10300,74 @@ fi
10301
10300
done
10302
10301
10303
10302
10304
- # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10303
+ # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10304
+ # is included first.
10305
+
10306
+ for ac_header in sys/ucred.h
10307
+ do
10308
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10310
+ $as_echo_n "checking for $ac_header... " >&6; }
10311
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10312
+ $as_echo_n "(cached) " >&6
10313
+ else
10314
+ cat >conftest.$ac_ext <<_ACEOF
10315
+ /* confdefs.h. */
10316
+ _ACEOF
10317
+ cat confdefs.h >>conftest.$ac_ext
10318
+ cat >>conftest.$ac_ext <<_ACEOF
10319
+ /* end confdefs.h. */
10320
+ $ac_includes_default
10321
+ #include <sys/param.h>
10322
+
10323
+
10324
+ #include <$ac_header>
10325
+ _ACEOF
10326
+ rm -f conftest.$ac_objext
10327
+ if { (ac_try="$ac_compile"
10328
+ case "(($ac_try" in
10329
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330
+ *) ac_try_echo=$ac_try;;
10331
+ esac
10332
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333
+ $as_echo "$ac_try_echo") >&5
10334
+ (eval "$ac_compile") 2>conftest.er1
10335
+ ac_status=$?
10336
+ grep -v '^ *+' conftest.er1 >conftest.err
10337
+ rm -f conftest.er1
10338
+ cat conftest.err >&5
10339
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340
+ (exit $ac_status); } && {
10341
+ test -z "$ac_c_werror_flag" ||
10342
+ test ! -s conftest.err
10343
+ } && test -s conftest.$ac_objext; then
10344
+ eval "$as_ac_Header=yes"
10345
+ else
10346
+ $as_echo "$as_me: failed program was:" >&5
10347
+ sed 's/^/| /' conftest.$ac_ext >&5
10348
+
10349
+ eval "$as_ac_Header=no"
10350
+ fi
10351
+
10352
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353
+ fi
10354
+ ac_res=`eval 'as_val=${'$as_ac_Header'}
10355
+ $as_echo "$as_val"'`
10356
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10357
+ $as_echo "$ac_res" >&6; }
10358
+ as_val=`eval 'as_val=${'$as_ac_Header'}
10359
+ $as_echo "$as_val"'`
10360
+ if test "x$as_val" = x""yes; then
10361
+ cat >>confdefs.h <<_ACEOF
10362
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10363
+ _ACEOF
10364
+
10365
+ fi
10366
+
10367
+ done
10368
+
10369
+
10370
+ # At least on IRIX, test for netinet/tcp.h will fail unless
10305
10371
# netinet/in.h is included first.
10306
10372
10307
10373
for ac_header in netinet/in.h
@@ -17129,6 +17195,7 @@ cat confdefs.h >>conftest.$ac_ext
17129
17195
cat >>conftest.$ac_ext <<_ACEOF
17130
17196
/* end confdefs.h. */
17131
17197
#include <sys/socket.h>
17198
+ #include <sys/param.h>
17132
17199
#ifdef HAVE_SYS_UCRED_H
17133
17200
#include <sys/ucred.h>
17134
17201
#endif
@@ -17167,6 +17234,7 @@ cat confdefs.h >>conftest.$ac_ext
17167
17234
cat >>conftest.$ac_ext <<_ACEOF
17168
17235
/* end confdefs.h. */
17169
17236
#include <sys/socket.h>
17237
+ #include <sys/param.h>
17170
17238
#ifdef HAVE_SYS_UCRED_H
17171
17239
#include <sys/ucred.h>
17172
17240
#endif
0 commit comments