autotools: Nuke IPC_RMID_DEFERRED_RELEASE

Graphics / X.Org / xf86-video-intel - Ville Syrjälä [linux.intel.com] - 6 February 2018 13:12 EST

IPC_RMID_DEFERRED_RELEASE is unused so nuke it.

###

diff --git a/configure.ac b/configure.ac
index d13917ec..cd84e042 100644
--- a/configure.ac
+++ b/configure.ac
@@ -247,32 +247,6 @@ if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_
fi

if test "x$shm" = "xyes"; then
- AC_MSG_CHECKING(whether shmctl IPC_RMID allows subsequent attaches)
- AC_TRY_RUN([
- #include
- #include
- #include
- 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])
fi

a3a9e99b autotools: Nuke IPC_RMID_DEFERRED_RELEASE
configure.ac | 26 --------------------------
1 file changed, 26 deletions(-)

Upstream: cgit.freedesktop.org


  • Share