Bruno Haible <[EMAIL PROTECTED]> writes: > Elbert Pol wrote: > >> test-sys_socket.c:27: error: `SHUT_RD' undeclared here (not in a function) >> test-sys_socket.c:27: error: initializer element is not constant >> test-sys_socket.c:27: error: (near initialization for `a[0]') >> test-sys_socket.c:27: error: `SHUT_WR' undeclared here (not in a function) >> test-sys_socket.c:27: error: initializer element is not constant >> test-sys_socket.c:27: error: (near initialization for `a[1]') >> test-sys_socket.c:27: error: `SHUT_RDWR' undeclared here (not in a function) >> test-sys_socket.c:27: error: initializer element is not constant >> test-sys_socket.c:27: error: (near initialization for `a[2]') > > Fixing it like this. Simon, do you agree?
Yes. We have similar workarounds elsewhere in GnuTLS already, but with this patch I can remove them and just rely on sys/socket.h. Thanks, Simon