Symptom: A error message appears, that the option TCP_NODELAY is unknown Problem: in include.h is a special handling for HP-UX 11 defined. TCP_NODELAY and TCP_MAXSEG will be undefined before shadow.h, rpc/rpc.h and rpcsvc/yp_prot.h will be included. This is done to suppress compiler warnings about redefined macros. But shadow.h is the only one file which redefines TCP_MAXSEG and TCP_NODELAY. The other undef statements are "finally" samba is compiled without this socket options. A patch is attached. But unfortunately I can test it at HPUX 11i only. In any case it would be better to have a compiler warning then to undef the option.
Created attachment 1002 [details] Fix for TCP_NODELAY at HPUX 11i Apply the patch to include/includes.h It will do the following: - remove the undef statements for HPUX at wrong places - create a compiler warning if TCP_NODELAY and TCP_MAXSEG is not redefined by shadow.h It is tested at HP-UX 11i with gcc 3.3.1
*** Bug 2140 has been marked as a duplicate of this bug. ***
Fixed in master by 3a0fd53f7c3cfa9ce26f9f4b1da4a1ac1dc4e44a for Samba 4.11