[Replicant] [libsamsung-ipc][PATCH] samsung-ipc.h: fix include for timeval struct
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Thu Feb 6 17:24:57 UTC 2020
When creating a new file which only includes samsung-ipc.h,
with -Werror, we have a compilation error:
error: ‘struct timeval’ declared inside parameter list
will not be visible outside of this definition or
declaration [-Werror]
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
include/samsung-ipc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h
index 5fc2c76..1202da3 100644
--- a/include/samsung-ipc.h
+++ b/include/samsung-ipc.h
@@ -19,7 +19,7 @@
* along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <time.h>
+#include <sys/time.h>
#ifndef __SAMSUNG_IPC_H__
#define __SAMSUNG_IPC_H__
--
2.25.0
More information about the Replicant
mailing list