Skip to content

Commit

Permalink
At configure time disable Posix sem for
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jimjag committed Mar 27, 2003
1 parent abce33c commit 7fc8788
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fc8788

Please sign in to comment.