pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53580: devel/lua-posix: missing #include <sys/time.h>



>Number:         53580
>Category:       pkg
>Synopsis:       devel/lua-posix: missing #include <sys/time.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 06 15:25:00 +0000 2018
>Originator:     Edgar FuÃ?
>Release:        pkgsrc-2018Q2
>Organization:
Mathematisches Institut der Universität Bonn
	
>Description:
	In ext/posix/sys/socket.c, Psetsockopt() uses struct timeval, but the file doesn't #include <sys/time.h>.
	Has been reported upstream: https://github.com/luaposix/luaposix/issues/311
>How-To-Repeat:
	Build devel/lua-posix (at least on NetBSD 6.1)
>Fix:
$NetBSD: patch-ext_posix_sys_socket.c$

Include <sys/time.h> (for struct timeval)

--- ext/posix/sys/socket.c.orig        2018-02-21 03:29:31.000000000 +0100
+++ ext/posix/sys/socket.c     2018-08-31 19:31:08.000000000 +0200
@@ -37,6 +37,7 @@
 #include <netinet/tcp.h>
 #include <netinet/udp.h>
 #include <sys/un.h>
+#include <sys/time.h>
 
 
 /***



Home | Main Index | Thread Index | Old Index