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 <[email protected]>
---
 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

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to