Skip to content

Commit

Permalink
struct semun is defined in sys/sem.h on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
sah committed Aug 13, 2009
1 parent 2c6284c commit 9bfa4c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libketama/ketama.h
Expand Up @@ -34,12 +34,14 @@
extern "C" {
#endif

#ifndef __APPLE__
union semun
{
int val; /* used for SETVAL only */
struct semid_ds *buf; /* for IPC_STAT and IPC_SET */
ushort *array; /* used for GETALL and SETALL */
};
#endif

typedef int (*compfn)( const void*, const void* );

Expand Down

0 comments on commit 9bfa4c5

Please sign in to comment.