[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Missing header for logger.c and OpenBSD
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-inetutils] Missing header for logger.c and OpenBSD |
Date: |
Fri, 06 Aug 2010 21:01:12 +0300 |
Mats Erik Andersson <address@hidden> ha escrit:
> The problem is that these functions do not exist in OpenBSD,
> yet they are used as the code is presently sent to the linker.
OK, please send me your config.log file.
> > > There are further problems in "ifconfig/" where compilation
> > > halts due to missing macros IFF_SLAVE and IFF_MASTER.
> >
> > These two should be protected by #ifdef.
> >
>
> Again, on OpenBSD these constants are called for by the preprocessor.
Right, that's whar I meant. This should help, then:
diff --git a/ifconfig/flags.c b/ifconfig/flags.c
index d927da5..e35744f 100644
--- a/ifconfig/flags.c
+++ b/ifconfig/flags.c
@@ -403,8 +403,12 @@ static struct if_flag_char flag_char_tab[] = {
{ IFF_NOTRAILERS, 'N' },
{ IFF_NOARP, 'O' },
{ IFF_POINTOPOINT, 'P' },
+#ifdef IFF_SLAVE
{ IFF_SLAVE, 's' },
+#endif
+#ifdef IFF_MASTER
{ IFF_MASTER, 'm' },
+#endif
{ IFF_RUNNING, 'R' },
{ IFF_UP, 'U' },
{ 0 }
> due to unpleasently hard dependence on autoconf-2.63.
Inetutils does not depend on that particular version of
Autoconf. Any version starting from 2.59 may be used.
Regards,
Sergey
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Sergey Poznyakoff, 2010/08/01
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Mats Erik Andersson, 2010/08/06
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD,
Sergey Poznyakoff <=
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Mats Erik Andersson, 2010/08/14
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Sergey Poznyakoff, 2010/08/14
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Alfred M. Szmidt, 2010/08/16
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Mats Erik Andersson, 2010/08/18
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Alfred M. Szmidt, 2010/08/18
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Mats Erik Andersson, 2010/08/18
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Alfred M. Szmidt, 2010/08/18
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Alfred M. Szmidt, 2010/08/16
- Re: [bug-inetutils] Missing header for logger.c and OpenBSD, Sergey Poznyakoff, 2010/08/16