autotools: Nuke IPC_RMID_DEFERRED_RELEASE
IPC_RMID_DEFERRED_RELEASE is unused so nuke it. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
896122c9f6
commit
a3a9e99b52
26
configure.ac
26
configure.ac
|
|
@ -247,32 +247,6 @@ if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$shm" = "xyes"; then
|
if test "x$shm" = "xyes"; then
|
||||||
AC_MSG_CHECKING(whether shmctl IPC_RMID allows subsequent attaches)
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/ipc.h>
|
|
||||||
#include <sys/shm.h>
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
char *shmaddr;
|
|
||||||
int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
|
|
||||||
if (id == -1) return 2;
|
|
||||||
shmaddr = shmat (id, 0, 0);
|
|
||||||
shmctl (id, IPC_RMID, 0);
|
|
||||||
if ((char*) shmat (id, 0, 0) == (char*) -1) {
|
|
||||||
shmdt (shmaddr);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
shmdt (shmaddr);
|
|
||||||
shmdt (shmaddr);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
],
|
|
||||||
AC_DEFINE(IPC_RMID_DEFERRED_RELEASE, 1,
|
|
||||||
[Define to 1 if shared memory segments are released deferred.])
|
|
||||||
AC_MSG_RESULT(yes),
|
|
||||||
AC_MSG_RESULT(no),
|
|
||||||
AC_MSG_RESULT(assuming no))
|
|
||||||
AC_DEFINE([HAVE_MIT_SHM], 1, [Define to 1 if MIT-SHM is available])
|
AC_DEFINE([HAVE_MIT_SHM], 1, [Define to 1 if MIT-SHM is available])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue