Fix build with musl libc
authorV.Krishn <vkrishn4@gmail.com>
Sun, 8 Mar 2015 09:35:27 +0000 (09:35 +0000)
committerAndy Green <andy@warmcat.com>
Tue, 29 Mar 2016 22:24:24 +0000 (06:24 +0800)
commit1ba878cdd58e27b7619fba0fb15c158dcf600907
tree5c181a459af3bd834b5cd3432c3ae6720bdb8ac3
parent674609e69a3ca8b87e09792e267bbfb01e3af147
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().
lib/private-libwebsockets.h
lib/sha-1.c