Stop declaring libnet_getgre_length as inline; fixes build with clang

libnet_getgre_length is a public symbol declared in a public header (and
defined in a .c file), it makes no sense to declare it as inline.
This commit is contained in:
jca 2017-04-19 12:29:12 +00:00
parent 70625eacdd
commit 2ba9f8b574
2 changed files with 14 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.16 2016/06/29 16:14:44 espie Exp $
# $OpenBSD: Makefile,v 1.17 2017/04/19 12:29:12 jca Exp $
REV= 1.1
VERSION= ${REV}.2.1
REVISION= 3
REVISION= 4
EPOCH= 0
SHARED_LIBS= net 11.0
PKGSPEC= libnet->=1.1v0,<1.2v0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-include_libnet_libnet-functions_h,v 1.1 2017/04/19 12:29:12 jca Exp $
--- include/libnet/libnet-functions.h.orig Wed Apr 19 14:23:01 2017
+++ include/libnet/libnet-functions.h Wed Apr 19 14:23:18 2017
@@ -1429,7 +1429,7 @@ libnet_t *l, libnet_ptag_t ptag);
* @param ptag protocol tag to modify an existing header, 0 to build a new one
* @return protocol tag value on success, -1 on error
*/
-inline u_int32_t
+u_int32_t
libnet_getgre_length(u_int16_t fv);
/**