1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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().
This commit is contained in:
V.Krishn 2015-03-08 09:35:27 +00:00 committed by Andy Green
parent 1a3f17700e
commit 7d5b1531ef
2 changed files with 0 additions and 2 deletions

View file

@ -264,7 +264,6 @@ typedef unsigned __int64 u_int64_t;
#else
#include <sys/stat.h>
#include <sys/cdefs.h>
#include <sys/time.h>
#if defined(__APPLE__)

View file

@ -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)