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:
parent
674609e69a
commit
1ba878cdd5
2 changed files with 0 additions and 2 deletions
|
@ -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__)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue