Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita061a3f

Browse files
committed
Avoid including <sys/time.h> on platforms that don't have it.
Per trouble report from Andreas Pflug.
1 parentfd78666 commita061a3f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

‎configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6957,7 +6957,8 @@ done
69576957

69586958

69596959

6960-
for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
6960+
6961+
for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
69616962
do
69626963
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69636964
if eval "test \"\${$as_ac_Header+set}\" = set"; then

‎configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.364 2004/06/16 03:01:32 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.365 2004/06/24 18:55:18 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -670,7 +670,7 @@ fi
670670
##
671671

672672
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
673-
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
673+
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
674674

675675
# At least on IRIX, cpp test for netinet/tcp.h will fail unless
676676
# netinet/in.h is included first.

‎src/include/libpq/libpq-be.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.45 2004/05/21 05:08:04 tgl Exp $
14+
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.46 2004/06/24 18:55:20 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
1818
#ifndefLIBPQ_BE_H
1919
#defineLIBPQ_BE_H
2020

21+
#ifdefHAVE_SYS_TIME_H
2122
#include<sys/time.h>
22-
23+
#endif
2324
#ifdefUSE_SSL
2425
#include<openssl/ssl.h>
2526
#include<openssl/err.h>

‎src/include/pg_config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@
496496
/* Define to 1 if you have the <sys/stat.h> header file. */
497497
#undef HAVE_SYS_STAT_H
498498

499+
/* Define to 1 if you have the <sys/time.h> header file. */
500+
#undef HAVE_SYS_TIME_H
501+
499502
/* Define to 1 if you have the <sys/types.h> header file. */
500503
#undef HAVE_SYS_TYPES_H
501504

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp