[haiku-bugs] Re: [Haiku] #11818: Posix __USE_GNU vs _GNU_SOURCE

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 08 Aug 2019 07:03:11 -0000

#11818: Posix __USE_GNU vs  _GNU_SOURCE
---------------------------------+----------------------------
   Reporter:  kallisti5          |      Owner:  nobody
       Type:  bug                |     Status:  assigned
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:  posix
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by pulkomandy):

 The way it work in glibc is that the user defines _GNU_SOURCE, and
 features.h defines {{{__USE_GNU}}} and other {{{__USE_*}}} stuff.

 Our public features.h works differently, as I don't think the internal
 {{{__USE_*}}} defines are very useful and they are confusing to track. So
 when taking headers from glibc and making them public, we have to be
 careful about this.

 I would leave these as is for now unless there are problems compiling
 things because of this? The BSD extensions that we have in libbsd are
 quite useful, but the things glibc adds or goes against POSIX for, I'm not
 so sure.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/11818#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: