Fix build of the D frontend on the Hurd and KFreeBSD.  Where should these
changes go, when they are not yet applied upstream?

Ok to commit?

Matthias

# DP: Fix build of the D frontend on the Hurd and KFreeBSD.

Index: b/src/gcc/d/dfrontend/object.h
===================================================================
--- a/src/gcc/d/dmd/root/object.h
+++ b/src/gcc/d/dmd/root/object.h
@@ -10,7 +10,7 @@
 #ifndef OBJECT_H
 #define OBJECT_H
 
-#define POSIX (__linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun)
+#define POSIX (__linux__ || __GLIBC__ || __gnu_hurd__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun)
 
 #if __DMC__
 #pragma once

Reply via email to