1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/sic/musl-fix.patch
2022-10-29 23:54:58 +00:00

25 lines
615 B
Diff

From d8e9e4a013196b98576a3a759b4b27c3edb2a0d2 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 4 Feb 2014 10:06:53 +0000
Subject: [PATCH] build fix for musl libc
It fixes the following compile error with musl libc:
sic.c:137:17: error: storage size of 'tv' isn't known
struct timeval tv;
^
---
sic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sic.c b/sic.c
index c1e428e..3b6c7a3 100644
--- a/sic.c
+++ b/sic.c
@@ -9,6 +9,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
+#include <sys/time.h>
#include "arg.h"
#include "config.h"