diff options
author | V.Krishn <vkrishn4@gmail.com> | 2015-03-08 09:35:27 +0000 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2016-03-30 06:24:24 +0800 |
commit | 1ba878cdd58e27b7619fba0fb15c158dcf600907 (patch) | |
tree | 5c181a459af3bd834b5cd3432c3ae6720bdb8ac3 | |
parent | 674609e69a3ca8b87e09792e267bbfb01e3af147 (diff) | |
download | libwebsockets-1ba878cdd58e27b7619fba0fb15c158dcf600907.tar.gz libwebsockets-1ba878cdd58e27b7619fba0fb15c158dcf600907.tar.bz2 libwebsockets-1ba878cdd58e27b7619fba0fb15c158dcf600907.zip |
Fix build with musl libc
Fix building libwebsockets with the musl C libary.
<sys/cdefs.h> is an internal glibc header and should be avoided in user code.
__P() was used for compatibility with some old K&R C compilers, when there were
no prototypes (which were introduced to C with C89). As supporting legacy
non-ANSI compilers is nowadays not necessary anymore get rid of the unnecessary
function prototype using __P().
-rw-r--r-- | lib/private-libwebsockets.h | 1 | ||||
-rw-r--r-- | lib/sha-1.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 32377989..6454615f 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -235,7 +235,6 @@ typedef unsigned __int64 u_int64_t; #else #include <sys/stat.h> -#include <sys/cdefs.h> #include <sys/time.h> #if defined(__APPLE__) diff --git a/lib/sha-1.c b/lib/sha-1.c index 1c5f69ac..f5d58c7a 100644 --- a/lib/sha-1.c +++ b/lib/sha-1.c @@ -99,7 +99,6 @@ static const unsigned int _K[] = sha1_step(ctxt); \ } -static void sha1_step __P((struct sha1_ctxt *)); static void sha1_step(struct sha1_ctxt *ctxt) |