|
Last change
on this file since 770 was 1, checked in by Paul Smedley, 19 years ago |
|
Initial code import
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #include <stdio.h>
|
|---|
| 2 |
|
|---|
| 3 | main()
|
|---|
| 4 | {
|
|---|
| 5 | #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))
|
|---|
| 6 | printf("ERROR: No locking available. Running Samba would be unsafe\n");
|
|---|
| 7 | exit(1);
|
|---|
| 8 | #endif
|
|---|
| 9 | #if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX))
|
|---|
| 10 | printf("WARNING: No automated network interface determination\n");
|
|---|
| 11 | #endif
|
|---|
| 12 |
|
|---|
| 13 | #ifndef __OS2__
|
|---|
| 14 | #if !(defined(USE_SETEUID) || defined(USE_SETREUID) || defined(USE_SETRESUID) || defined(USE_SETUIDX))
|
|---|
| 15 | printf("ERROR: no seteuid method available\n");
|
|---|
| 16 | exit(1);
|
|---|
| 17 | #endif
|
|---|
| 18 | #endif /* __OS2__ */
|
|---|
| 19 |
|
|---|
| 20 | #if !(defined(STAT_STATVFS) || defined(STAT_STATVFS64) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
|
|---|
| 21 | printf("ERROR: No disk free routine!\n");
|
|---|
| 22 | exit(1);
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
|
|---|
| 26 | printf("ERROR: No random or srandom routine!\n");
|
|---|
| 27 | exit(1);
|
|---|
| 28 | #endif
|
|---|
| 29 |
|
|---|
| 30 | exit(0);
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.