Standardize macro tests for gnu hurd
This also fixes breakage of GNU/hurd builds introduced by commit 3f82edbeb9
.
This commit is contained in:
parent
c831f1f994
commit
085d77f17e
@ -31,7 +31,8 @@
|
||||
#include "queue.h"
|
||||
#include "librc.h"
|
||||
|
||||
#if defined(__linux__) || (defined (__FreeBSD_kernel__) && defined(__GLIBC__))
|
||||
#if defined(__linux__) || (defined (__FreeBSD_kernel__) && defined(__GLIBC__)) \
|
||||
|| defined(__GNU__)
|
||||
static bool
|
||||
pid_is_exec(pid_t pid, const char *exec)
|
||||
{
|
||||
|
@ -39,8 +39,8 @@
|
||||
# include <sys/statvfs.h>
|
||||
# define statfs statvfs
|
||||
# define F_FLAGS f_flag
|
||||
#elif defined (__linux__) || (defined(__FreeBSD_kernel__) && \
|
||||
defined(__GLIBC__)) || defined(__GNU__)
|
||||
#elif defined(__linux__) || (defined(__FreeBSD_kernel__) && \
|
||||
defined(__GLIBC__)) || defined(__GNU__)
|
||||
# include <mntent.h>
|
||||
#endif
|
||||
|
||||
@ -267,8 +267,8 @@ find_mounts(struct args *args)
|
||||
return list;
|
||||
}
|
||||
|
||||
#elif defined (__linux__) || (defined (__FreeBSD_kernel__) && \
|
||||
defined(__GLIBC__))
|
||||
#elif defined(__linux__) || (defined(__FreeBSD_kernel__) && \
|
||||
defined(__GLIBC__)) || defined(__GNU__)
|
||||
static struct mntent *
|
||||
getmntfile(const char *file)
|
||||
{
|
||||
|
@ -51,8 +51,8 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && \
|
||||
defined(__GLIBC__))
|
||||
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__)) \
|
||||
|| defined(__GNU__)
|
||||
# include <pty.h>
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# include <util.h>
|
||||
|
@ -44,7 +44,8 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))
|
||||
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__)) \
|
||||
|| defined(__GNU__)
|
||||
# include <pty.h>
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# include <util.h>
|
||||
|
Loading…
Reference in New Issue
Block a user