summaryrefslogtreecommitdiff
path: root/apps/examples/cc3000
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/cc3000')
-rw-r--r--apps/examples/cc3000/telnetd_daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/cc3000/telnetd_daemon.c b/apps/examples/cc3000/telnetd_daemon.c
index 68bcbfbca..2adadc60a 100644
--- a/apps/examples/cc3000/telnetd_daemon.c
+++ b/apps/examples/cc3000/telnetd_daemon.c
@@ -99,7 +99,7 @@ static int telnetd_daemon(int argc, char *argv[])
{
FAR struct telnetd_s *daemon;
struct sockaddr_in myaddr;
-#ifdef CONFIG_NET_HAVE_SOLINGER
+#ifdef CONFIG_NET_SOLINGER
struct linger ling;
#endif
socklen_t addrlen;
@@ -187,7 +187,7 @@ static int telnetd_daemon(int argc, char *argv[])
/* Configure to "linger" until all data is sent when the socket is closed */
-#ifdef CONFIG_NET_HAVE_SOLINGER
+#ifdef CONFIG_NET_SOLINGER
ling.l_onoff = 1;
ling.l_linger = 30; /* timeout is seconds */
if (setsockopt(acceptsd, SOL_SOCKET, SO_LINGER, &ling, sizeof(struct linger)) < 0)