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

Commit098f4d8

Browse files
committed
Remove configure probe for shm_open.
shm_open() is in SUSv2 and all targeted Unix systems have it.We retain a HAVE_SHM_OPEN macro, because it's clearer to readers thansomething like !defined(WIN32).Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
1 parentbdb657e commit098f4d8

File tree

5 files changed

+2
-6
lines changed

5 files changed

+2
-6
lines changed

‎configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16039,7 +16039,7 @@ fi
1603916039
LIBS_including_readline="$LIBS"
1604016040
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1604116041

16042-
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsidshm_openstrchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
16042+
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
1604316043
do :
1604416044
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1604516045
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

‎configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,6 @@ AC_CHECK_FUNCS(m4_normalize([
18101810
setproctitle
18111811
setproctitle_fast
18121812
setsid
1813-
shm_open
18141813
strchrnul
18151814
strsignal
18161815
symlink

‎src/include/pg_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,6 @@
472472
/* Define to 1 if you have the `setsid' function. */
473473
#undef HAVE_SETSID
474474

475-
/* Define to 1 if you have the `shm_open' function. */
476-
#undef HAVE_SHM_OPEN
477-
478475
/* Define to 1 if the system has the type `socklen_t'. */
479476
#undef HAVE_SOCKLEN_T
480477

‎src/include/port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_
525525
*/
526526
#ifndefWIN32
527527
#defineHAVE_GETRLIMIT 1
528+
#defineHAVE_SHM_OPEN 1
528529
#endif
529530

530531
#endif/* PG_PORT_H */

‎src/tools/msvc/Solution.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ sub GenerateFiles
351351
HAVE_SETPROCTITLE=>undef,
352352
HAVE_SETPROCTITLE_FAST=>undef,
353353
HAVE_SETSID=>undef,
354-
HAVE_SHM_OPEN=>undef,
355354
HAVE_SOCKLEN_T=> 1,
356355
HAVE_SPINLOCKS=> 1,
357356
HAVE_STDBOOL_H=> 1,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp