summaryrefslogtreecommitdiff
path: root/pfinet/ethernet.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 12:08:12 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 12:08:12 +0000
commitf9b438f76afa50d99e25c46af6a3ea25b4e463a6 (patch)
treee64485b413af4e32acaa479ab6454199138fc008 /pfinet/ethernet.c
parentcada30c0b184d5d532fc484c9b07844183007468 (diff)
Fix pfinet compilation
* pfinet/ethernet.c (_HACK_ERRNO_H): Define to avoid inclusion of glue-include/linux/errno.h which undefines errno. Include <fcntl.h>.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r--pfinet/ethernet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c
index dab5c56f..3b632fa6 100644
--- a/pfinet/ethernet.c
+++ b/pfinet/ethernet.c
@@ -20,6 +20,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+/* Do not include glue-include/linux/errno.h */
+#define _HACK_ERRNO_H
#include "pfinet.h"
#include <device/device.h>
@@ -27,6 +29,7 @@
#include <netinet/in.h>
#include <string.h>
#include <error.h>
+#include <fcntl.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>