Small updates for NetBSD port
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* File ..................: libs.h
|
||||
* Purpose ...............: Libraries include list
|
||||
* Last modification date : 11-Aug-2001
|
||||
* $Id$
|
||||
* Purpose ...............: Libraries include list for mbtask
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
* Copyright (C) 1997-2002
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10 Internet: mbse@user.sourceforge.net
|
||||
@@ -70,7 +69,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
#include <netinet/in_systm.h>
|
||||
#endif
|
||||
#include <netinet/ip.h>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
* Purpose ...............: MBSE BBS Task Manager
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
* Copyright (C) 1997-2002
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -870,7 +870,7 @@ void ulocktask(void)
|
||||
|
||||
|
||||
/* different names, same thing... be careful, as these are macros... */
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
# define icmphdr icmp
|
||||
# define iphdr ip
|
||||
# define ip_saddr ip_src.s_addr
|
||||
@@ -897,7 +897,7 @@ void ulocktask(void)
|
||||
# define icmp_seq un.echo.sequence
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
# define ICMP_DEST_UNREACH ICMP_UNREACH
|
||||
# define ICMP_TIME_EXCEEDED ICMP_TIMXCEED
|
||||
#endif
|
||||
|
@@ -4,7 +4,7 @@
|
||||
* Purpose ...............: Give status of all filesystems
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
* Copyright (C) 1997-2002
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10 Internet: mbse@user.sourceforge.net
|
||||
@@ -53,7 +53,7 @@ char *get_diskstat()
|
||||
mtab = calloc(PATH_MAX, sizeof(char));
|
||||
#ifdef __linux__
|
||||
if ((fp = fopen((char *)"/etc/mtab", "r")) == 0) {
|
||||
#elif __FreeBSD__
|
||||
#elif __FreeBSD__ || __NetBSD__
|
||||
if ((fp = fopen((char *)"/etc/fstab", "r")) == 0) {
|
||||
#endif
|
||||
sprintf(buf, "100:0;");
|
||||
|
Reference in New Issue
Block a user