Fix up Linux build errors

This commit is contained in:
Justin Hammond 2016-09-21 17:48:55 +08:00
parent ae11b1ac6c
commit 3538c6d48d
4 changed files with 5 additions and 7 deletions

View file

@ -90,18 +90,16 @@ struct zip_service
};
/**
* First elemnets in a linked list of Z/IP services
* get a linked list of Z/IP services
*
* The list may be iterated like this
* @code{.c}
* struct zip_service* n;;
* for(n = zresource_services; n ; n=n->next) {
* for(n = zresource_get(); n ; n=n->next) {
* ...
* }
* @endcode
*/
//extern struct zip_service* zresource_services;
struct zip_service* zresource_get();
/**

View file

@ -32,7 +32,7 @@
/* Define to 1 if you have getpwnam_r and getpwuid_r that are POSIX.1
compatible. */
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#if (defined(__APPLE__) && defined(__MACH__))
#undef HAVE_GETPW_R_POSIX
#else
#define HAVE_GETPW_R_POSIX 1

View file

@ -48,7 +48,7 @@ __RCSID("$NetBSD: history.c,v 1.57 2016/04/11 18:56:31 christos Exp $");
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#if (defined(__APPLE__) && defined(__MACH__))
#include <vis.h>
#else
#include <bsd/vis.h>

View file

@ -48,7 +48,7 @@ __RCSID("$NetBSD: readline.c,v 1.138 2016/09/01 13:23:44 mbalmer Exp $");
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#if (defined(__APPLE__) && defined(__MACH__))
#include <vis.h>
#else
#include <bsd/vis.h>