libcli: SMB2: Pure SMB2-only negprot fix to make us behave as a Windows client does.
[Samba.git] / tests / summary.c
blob0843ee2cc9156dfdf5bdd50cea23951962df2bcf
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(USE_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);