diff dbutil.h @ 1033:ca71904cf3ee fastopen

Fixes for backwards compatibility
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Feb 2015 23:38:05 +0800
parents 0da8ba489c23
children 01eea88963f3
line wrap: on
line diff
--- a/dbutil.h	Fri Feb 20 23:16:38 2015 +0800
+++ b/dbutil.h	Fri Feb 20 23:38:05 2015 +0800
@@ -65,18 +65,6 @@
 
 char * stripcontrol(const char * text);
 
-#if defined(__linux__) && HAVE_SENDMSG
-#define DROPBEAR_TCP_FAST_OPEN
-void set_listen_fast_open(int sock);
-/* may be supported by kernel but not libc */
-#ifndef TCP_FASTOPEN
-#define TCP_FASTOPEN 23
-#endif
-#ifndef MSG_FASTOPEN
-#define MSG_FASTOPEN 0x20000000
-#endif
-#endif
-
 int spawn_command(void(*exec_fn)(void *user_data), void *exec_data,
 		int *writefd, int *readfd, int *errfd, pid_t *pid);
 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell);