diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-17 05:56:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-17 05:56:49 +0000 |
commit | 98825661ddb4dd5cfa603291a69b5c4d3d98e791 (patch) | |
tree | 600dd000a2fcb4378b0059dbbb4d4fc2f24fa2f4 /source3/tests/sgi_sysv_hack.c | |
parent | bb28f06eae2b8553f2b4d667b07153c2e8ab5077 (diff) | |
download | samba-98825661ddb4dd5cfa603291a69b5c4d3d98e791.tar.gz samba-98825661ddb4dd5cfa603291a69b5c4d3d98e791.tar.bz2 samba-98825661ddb4dd5cfa603291a69b5c4d3d98e791.zip |
removed some obsolete configure tests (sysv ipc etc)
(This used to be commit e8905a557a342ba3604a61663c6ff24887a9fd46)
Diffstat (limited to 'source3/tests/sgi_sysv_hack.c')
-rw-r--r-- | source3/tests/sgi_sysv_hack.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/source3/tests/sgi_sysv_hack.c b/source3/tests/sgi_sysv_hack.c deleted file mode 100644 index 0fb16f11f8..0000000000 --- a/source3/tests/sgi_sysv_hack.c +++ /dev/null @@ -1,46 +0,0 @@ -/* this tests if we need to define SGI_SEMUN_HACK - if we're using gcc on IRIX 6.5.x. */ - -#if defined(HAVE_UNISTD_H) -#include <unistd.h> -#endif -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ipc.h> -#include <sys/shm.h> -#include <sys/sem.h> - -#ifndef HAVE_UNION_SEMUN -union semun { - int val; - struct semid_ds *buf; - unsigned short *array; -}; -#endif - -union semun_hack { - int val; - struct semid_ds *buf; - unsigned short *array; - char __dummy[5]; -}; - -main() { - struct semid_ds sem_ds; - union semun_hack suh; - union semun su; - int sem_id, ret; - - ret = 1; - sem_id = semget(0xdead6666,1,IPC_CREAT|IPC_EXCL|0777); - su.buf = &sem_ds; - suh.buf = &sem_ds; - if (sem_id != -1) { - if ((semctl(sem_id, 0, IPC_STAT, su) == -1) && - (semctl(sem_id, 0, IPC_STAT, suh) != -1)) { - ret = 0; - } - } - semctl(sem_id, 0, IPC_RMID, 0); - return ret; -} |