mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-14 06:13:09 +00:00
nfqws2: bsd compile fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
CC ?= cc
|
CC ?= cc
|
||||||
PKG_CONFIG ?= pkg-config
|
PKG_CONFIG ?= pkg-config
|
||||||
OPTIMIZE ?= -Os
|
OPTIMIZE ?= -Os
|
||||||
CFLAGS += -std=gnu99 $(OPTIMIZE) -flto=auto
|
CFLAGS += -std=gnu99 $(OPTIMIZE) -flto=auto -Wl,--gc-sections
|
||||||
CFLAGS_LINUX = -Wno-alloc-size-larger-than
|
CFLAGS_LINUX = -Wno-alloc-size-larger-than
|
||||||
CFLAGS_SYSTEMD = -DUSE_SYSTEMD
|
CFLAGS_SYSTEMD = -DUSE_SYSTEMD
|
||||||
CFLAGS_BSD = -Wno-address-of-packed-member
|
CFLAGS_BSD = -Wno-address-of-packed-member
|
||||||
|
|||||||
@@ -102,9 +102,8 @@ int hmacReset(HMACContext *context, enum SHAversion whichSha,
|
|||||||
*/
|
*/
|
||||||
if (key_len > blocksize) {
|
if (key_len > blocksize) {
|
||||||
USHAContext tcontext;
|
USHAContext tcontext;
|
||||||
if (ret=USHAReset(&tcontext, whichSha)) return ret;
|
if ((ret=USHAReset(&tcontext, whichSha)) || (ret=USHAInput(&tcontext, key, key_len)) || (ret=USHAResult(&tcontext, tempkey)))
|
||||||
if (ret=USHAInput(&tcontext, key, key_len)) return ret;
|
return ret;
|
||||||
if (ret=USHAResult(&tcontext, tempkey)) return ret;
|
|
||||||
|
|
||||||
key = tempkey;
|
key = tempkey;
|
||||||
key_len = hashsize;
|
key_len = hashsize;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
|
|
||||||
@@ -18,7 +19,6 @@
|
|||||||
// __X32_SYSCALL_BIT defined in linux/unistd.h
|
// __X32_SYSCALL_BIT defined in linux/unistd.h
|
||||||
#include <linux/unistd.h>
|
#include <linux/unistd.h>
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
/************ SECCOMP ************/
|
/************ SECCOMP ************/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user