Merge branch 'v4-13-stable' into 'v4-13-test' again for the 4.13.9 release
[Samba.git] / tests / summary.c
blob87a64fd90efdf48432fd470dfa0982002e4d8f0a
1 #include <stdio.h>
3 void exit(int);
5 int main()
7 #if !defined(HAVE_FCNTL_LOCK)
8 #error "ERROR: No locking available. Running Samba would be unsafe"
9 #endif
11 #if !(defined(HAVE_IFACE_GETIFADDRS) || defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX))
12 #warning "WARNING: No automated network interface determination"
13 #endif
15 #if !(defined(USE_SETEUID) || defined(USE_SETREUID) || defined(USE_SETRESUID) || defined(USE_SETUIDX) || defined(HAVE_LINUX_THREAD_CREDENTIALS))
16 #error "ERROR: no seteuid method available"
17 #endif
19 #if !(defined(STAT_STATVFS) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
20 #error "ERROR: No disk free routine!"
21 #endif
23 #if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
24 #error "ERROR: No random or srandom routine!"
25 #endif
27 exit(0);