configure.ac: Improve C99 compatibility of IPC_RMID check
Do not call the undeclared exit function. Implicit function declarations are likely not going to be supported by future compilers by default, changing the outcome of this configure probe with such compilers.
This commit is contained in:
parent
e7c9b9d073
commit
99531e73e9
1 changed files with 3 additions and 3 deletions
|
|
@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
|
|||
char *shmaddr;
|
||||
id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
|
||||
if (id == -1)
|
||||
exit (2);
|
||||
return 2;
|
||||
shmaddr = shmat (id, 0, 0);
|
||||
shmctl (id, IPC_RMID, 0);
|
||||
if ((char*) shmat (id, 0, 0) == (char*) -1)
|
||||
{
|
||||
shmdt (shmaddr);
|
||||
exit (1);
|
||||
return 1;
|
||||
}
|
||||
shmdt (shmaddr);
|
||||
shmdt (shmaddr);
|
||||
exit (0);
|
||||
return 0;
|
||||
}
|
||||
]])],
|
||||
[AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
|
||||
|
|
|
|||
Loading…
Reference in a new issue