Fix build of the D frontend on the Hurd and KFreeBSD

Message ID 9dd48217-1c4f-9b9e-4085-114eb3155851@ubuntu.com
State New
Headers show
Series
  • Fix build of the D frontend on the Hurd and KFreeBSD
Related show

Commit Message

Matthias Klose Oct. 29, 2018, 11:51 a.m.
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

Comments

Iain Buclaw Oct. 29, 2018, 11:15 p.m. | #1
On Mon, 29 Oct 2018 at 12:51, Matthias Klose <doko@ubuntu.com> wrote:
>

> 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

>


Thanks,

I can send a patch to the github repository upstream.

I'll do a sync of the repo sometime tomorrow.

-- 
Iain

Patch

# 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