Define __FreeBSD__ in <net/bpf.h> if not defined

This makes it possible to use this header file directly in applications.
This commit is contained in:
Sebastian Huber 2014-01-20 14:59:42 +01:00
parent c50f1b42fe
commit c4ee44518c

View File

@ -40,6 +40,9 @@
#ifndef _NET_BPF_H_
#define _NET_BPF_H_
#if defined(__rtems__) && !defined(__FreeBSD__)
#define __FreeBSD__ 1
#endif /* defined(__rtems__) && !defined(__FreeBSD__) */
/* BSD style release date */
#define BPF_RELEASE 199606