[MacPorts] #58924: libogg @1.3.4: error: unknown type name 'uint16_t'

MacPorts noreply at macports.org
Wed Sep 4 15:47:37 UTC 2019


#58924: libogg @1.3.4: error: unknown type name 'uint16_t'
---------------------+------------------------------
  Reporter:  kencu   |      Owner:  kencu
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:  fixed   |   Keywords:  lion snowleopard
      Port:  libogg  |
---------------------+------------------------------

Comment (by cjones051073):

 Replying to [comment:16 kencu]:
 > Well some libogg dev specifically changed it away from <stdint.h> to
 <sys/types.h> to fix a problem, and it works on every system from 10.9+...
 so that's a tough sell to go back now.

 Ah, but that is not what they did. They changed it from

 {{{
 #include <inttypes.h>
 }}}

 to

 {{{
 #include <sys/types.h>
 }}}

 that is not the same thing.

 If they are assuming sys/types.h automatically includes it, then extending
 the above to

 {{{
 #include <stdint.h>
 #include <sys/types.h>
 }}}

 would be a no-op on 10.9+, and should fix things on older platforms.

 >
 >
 > > What Apple did was #include <stdint.h>or the equivalent in some header
 that is included by sys/types.h because they needed it for some internal
 reason.
 >
 > Exactly what I suspect.

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


More information about the macports-tickets mailing list