mirror of
https://github.com/immortalwrt/immortalwrt
synced 2025-01-07 03:27:22 +08:00
urngd: fix build for glibc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
0c5aa06824
commit
caf6177269
@ -38,6 +38,11 @@ define Package/urngd/description
|
||||
Jitter RNGd provides a source of sufficient entropy.
|
||||
endef
|
||||
|
||||
ifdef CONFIG_USE_GLIBC
|
||||
TARGET_CFLAGS += -U_FORTIFY_SOURCE
|
||||
TARGET_LDFLAGS += -lpthread
|
||||
endif
|
||||
|
||||
define Package/urngd/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
||||
|
@ -1,8 +1,6 @@
|
||||
diff --git a/urngd.c b/urngd.c
|
||||
index 35ccdec..410d300 100644
|
||||
--- a/urngd.c
|
||||
+++ b/urngd.c
|
||||
@@ -129,9 +129,14 @@ static size_t gather_entropy(struct urngd *u)
|
||||
@@ -129,9 +129,14 @@ static size_t gather_entropy(struct urng
|
||||
static void low_entropy_cb(struct uloop_fd *ufd, unsigned int events)
|
||||
{
|
||||
struct urngd *u = container_of(ufd, struct urngd, rnd_fd);
|
||||
@ -17,3 +15,4 @@ index 35ccdec..410d300 100644
|
||||
+ }
|
||||
}
|
||||
|
||||
static void urngd_done(struct urngd *u)
|
||||
|
Loading…
Reference in New Issue
Block a user