summaryrefslogtreecommitdiffstats
path: root/hdlcutil
diff options
context:
space:
mode:
Diffstat (limited to 'hdlcutil')
-rw-r--r--hdlcutil/Makefile.in5
-rw-r--r--hdlcutil/hdrvcomm.c6
-rw-r--r--hdlcutil/hdrvcomm.h2
-rw-r--r--hdlcutil/setcrystal.c4
4 files changed, 11 insertions, 6 deletions
diff --git a/hdlcutil/Makefile.in b/hdlcutil/Makefile.in
index 1583b42..555b55b 100644
--- a/hdlcutil/Makefile.in
+++ b/hdlcutil/Makefile.in
@@ -61,6 +61,7 @@ AWK = @AWK@
AX25IO_LIB = @AX25IO_LIB@
AX25_LIB = @AX25_LIB@
CC = @CC@
+DMASCC = @DMASCC@
MAKEINFO = @MAKEINFO@
NCURSES_LIB = @NCURSES_LIB@
PACKAGE = @PACKAGE@
@@ -92,10 +93,6 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-X_CFLAGS = @X_CFLAGS@
-X_LIBS = @X_LIBS@
-X_EXTRA_LIBS = @X_EXTRA_LIBS@
-X_PRE_LIBS = @X_PRE_LIBS@
setcrystal_OBJECTS = setcrystal.o
setcrystal_LDADD = $(LDADD)
setcrystal_DEPENDENCIES =
diff --git a/hdlcutil/hdrvcomm.c b/hdlcutil/hdrvcomm.c
index 55f0f38..05259e5 100644
--- a/hdlcutil/hdrvcomm.c
+++ b/hdlcutil/hdrvcomm.c
@@ -43,7 +43,11 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
-/*#include <linux/if.h>*/
+#ifdef __GLIBC__
+#include <netinet/if_ether.h>
+#else
+#include <linux/if_ether.h>
+#endif
#include <net/if.h>
#include "hdrvcomm.h"
#include "usersmdiag.h"
diff --git a/hdlcutil/hdrvcomm.h b/hdlcutil/hdrvcomm.h
index ec4be73..3167b03 100644
--- a/hdlcutil/hdrvcomm.h
+++ b/hdlcutil/hdrvcomm.h
@@ -32,7 +32,7 @@
/* ---------------------------------------------------------------------- */
-#undef HDRVC_KERNEL 1
+#define HDRVC_KERNEL 1 //why was undef here ???
/* ---------------------------------------------------------------------- */
diff --git a/hdlcutil/setcrystal.c b/hdlcutil/setcrystal.c
index 48ee750..926eddd 100644
--- a/hdlcutil/setcrystal.c
+++ b/hdlcutil/setcrystal.c
@@ -30,7 +30,11 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#ifdef __GLIBC__
#include <sys/io.h>
+#else
+#include <asm/io.h>
+#endif
/* --------------------------------------------------------------------- */