Skip to content

Commit

Permalink
don't redefine LWIP_SOCKET, make user repsonsible for turning it on i…
Browse files Browse the repository at this point in the history
…n lwIP
  • Loading branch information
toddouska committed May 26, 2011
1 parent 60cc652 commit 400e222
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
17 changes: 10 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@ depcomp
missing
libtool
tags
benchmark
test
client
echoclient
echoserver
server
ctaocrypt/benchmark/benchmark
ctaocrypt/test
examples/client/client
examples/echoclient/echoclient
examples/echoserver/echoserver
examples/server/server
snifftest
output
testsuite
testsuite/testsuite
testsuite/*.der
testsuite/*.pem
testsuite/*.raw
diff
sslSniffer/sslSnifferTest/tracefile.txt
*.gz
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ GCCWARNINGS="-Wall -fno-strict-aliasing -W -Wfloat-equal -Wundef \
-Wmissing-field-initializers -Wdeclaration-after-statement \
-Wold-style-definition -Waddress -Wmissing-noreturn -Wnormalized=id \
-Woverride-init -Wstrict-overflow=1 -Wextra -Warray-bounds \
-Wstack-protector -Wformat -Wformat-security -Wpointer-sign"
-Wstack-protector -Wformat -Wformat-security -Wpointer-sign -Wshadow"

AC_ARG_ENABLE(gcc-lots-o-warnings,
AS_HELP_STRING(--enable-gcc-lots-o-warnings, enable lots of gcc warnings),
Expand Down
6 changes: 0 additions & 6 deletions ctaocrypt/include/os_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@
#define NO_DH
#define NO_DSA
#define NO_HC128
#define CYASSL_LWIP /* by default for now */
#endif

#ifdef CYASSL_LWIP
#define LWIP_SOCKETS
#define LWIP_PROVIDE_ERRNO
#endif

#ifdef MICRIUM
Expand Down
7 changes: 4 additions & 3 deletions src/cyassl_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
#endif

#ifndef USE_WINDOWS_API
#ifdef LWIP_SOCKETS
#define LWIP_SOCKET 1 /* use berkely API */
#define LWIP_COMPAT_SOCKETS 1
#ifdef CYASSL_LWIP
/* lwIP needs to be configured to use sockets API in this mode */
/* LWIP_SOCKET 1 && LWIP_COMPAT_SOCKETS 1 in lwip/opt.h or in build */
#define LWIP_PROVIDE_ERRNO 1
#include "sockets.h"
#else
#include <sys/types.h>
Expand Down

0 comments on commit 400e222

Please sign in to comment.