Cope with net*/ headers change. No bump needed (didn't build and last

bump was today).  ok sthen@ jasper@
This commit is contained in:
jca 2013-11-26 21:56:52 +00:00
parent fbc15bdd3e
commit 8d2097b69d
2 changed files with 17 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.107 2013/11/26 12:01:19 sthen Exp $
# $OpenBSD: Makefile,v 1.108 2013/11/26 21:56:52 jca Exp $
# XXX fix procmap (Memory Writable column in gnome-system-monitor); remove lsof hack
@ -7,7 +7,7 @@ COMMENT= portable library for obtaining system information
GNOME_VERSION= 2.28.5
GNOME_PROJECT= libgtop
PKGNAME= libgtop2-${VERSION}
REVISION= 3
REVISION= 4
SHARED_LIBS= gtop-2.0 9.0 # .9.0

View File

@ -1,16 +1,28 @@
$OpenBSD: patch-sysdeps_openbsd_netload_c,v 1.2 2013/10/16 15:11:12 ajacoutot Exp $
$OpenBSD: patch-sysdeps_openbsd_netload_c,v 1.3 2013/11/26 21:56:52 jca Exp $
1. - we need if_var.h but ./configure fails to define HAVE_NET_IF_VAR_H
- some declarations in netiner/in_var.h are now kernel-private
2.
From 250666219659d721377613a916d8f166c2df93ee Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Wed, 16 Oct 2013 15:09:16 +0000
Subject: OpenBSD: add missing header
--- sysdeps/openbsd/netload.c.orig Sat Jul 27 14:40:23 2013
+++ sysdeps/openbsd/netload.c Fri Sep 6 19:11:28 2013
@@ -42,6 +42,7 @@
+++ sysdeps/openbsd/netload.c Tue Nov 26 00:46:30 2013
@@ -36,12 +36,13 @@
#include <sys/ioctl.h>
-#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
-#endif
#include <netinet/in.h>
+#define _KERNEL
#include <netinet/in_var.h>
+#undef _KERNEL
+#include <netinet6/in6_var.h>
static const unsigned long _glibtop_sysdeps_netload =