diff options
author | Jim Jagielski <jim@apache.org> | 2003-03-27 20:34:30 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2003-03-27 20:34:30 +0000 |
commit | 7fc87887912e1939eb4515bfa002dff7f0590206 (patch) | |
tree | 2d258f28d8adc9022b877d93e2eb2df9beba20da | |
parent | abce33ce177b3acac7fc41ccd05df95877d65e0c (diff) | |
download | apr-7fc87887912e1939eb4515bfa002dff7f0590206.tar.gz |
At configure time disable Posix sem for
those platforms where we can't/shouldn't shove a sem_t * into
an int -- bluntly reported by Joe Orton
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64454 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1306b172a..b9593528b 100644 --- a/configure.in +++ b/configure.in @@ -1422,6 +1422,8 @@ main() sem_t *psem; const char *sem_name = "/apr_autoconf"; + if (sizeof(int) < sizeof(sem_t *)) + exit(1); psem = sem_open(sem_name, O_CREAT, 0644, 1); if (psem == (sem_t *)SEM_FAILED) { exit(1); |