[MacPorts] #67307: glib2 compilation issues with clang

MacPorts noreply at macports.org
Sun May 14 07:17:30 UTC 2023


#67307: glib2 compilation issues with clang
-----------------------+----------------------
  Reporter:  rmottola  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard
      Port:  glib2     |
-----------------------+----------------------

Comment (by kencu):

 yes, there it is, indeed:
 {{{
 #ifdef __APPLE__
 #include <sys/cdefs.h>
 #include <unistd.h>
 # if !__DARWIN_NON_CANCELABLE
 #  if !__DARWIN_ONLY_UNIX_CONFORMANCE
 #   define close close$NOCANCEL$UNIX2003
 int close$NOCANCEL$UNIX2003 (int fd);
 #  else
 #   define close close$NOCANCEL
 int close$NOCANCEL (int fd);
 #  endif
 # endif
 #endif
 }}}

 we'd need for force this one to be used on 64 bit Leopard, which
 apparently presently is not being used:
 {{{
 close$NOCANCEL
 }}}

 I don't know about Tiger just now, 32 or 64 bit. I suspect both use this:
 {{{close$NOCANCEL$UNIX2003}}} but have to check.

 I don't know what this is supposed to do:
 {{{__DARWIN_ONLY_UNIX_CONFORMANCE}}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67307#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list