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

Commitc1494b7

Browse files
committed
Provide MAP_FAILED if sys/mman.h doesn't.
On old HPUX this has to be #defined to -1. It might be that other valuesare required on other dinosaur systems, but we'll worry about that whenand if we get reports.
1 parent8f85667 commitc1494b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/backend/port/sysv_shmem.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ typedef int IpcMemoryId;/* shared memory ID returned by shmget(2) */
5656

5757
#definePG_MMAP_FLAGS(MAP_SHARED|MAP_ANONYMOUS|MAP_HASSEMAPHORE)
5858

59+
/* Some really old systems don't define MAP_FAILED. */
60+
#ifndefMAP_FAILED
61+
#defineMAP_FAILED ((void *) -1)
62+
#endif
63+
64+
5965
unsigned longUsedShmemSegID=0;
6066
void*UsedShmemSegAddr=NULL;
6167
staticSizeAnonymousShmemSize;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp