net-tools/net-tools-1.60-STRIP.patch

35 lines
734 B
Diff
Raw Normal View History

2012-08-22 15:05:40 +00:00
From cb25358f5119192d14e3cf5370cd18037cc54ca8 Mon Sep 17 00:00:00 2001
From: Jiri Popelka <jpopelka@redhat.com>
Date: Wed, 22 Aug 2012 16:20:46 +0200
Subject: [PATCH] kernel 3.6 removes linux/if_strip.h
---
lib/strip.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/strip.c b/lib/strip.c
index ced2325..06ea990 100644
--- a/lib/strip.c
+++ b/lib/strip.c
@@ -21,7 +21,6 @@
#include <sys/socket.h>
#include <net/if_arp.h>
#include <linux/types.h>
-#include <linux/if_strip.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
@@ -35,6 +34,9 @@
#include "util.h"
#include "intl.h"
+typedef struct {
+ __u8 c[6];
+} MetricomAddress;
extern struct hwtype strip_hwtype;
--
1.7.11.4