[MacPorts] #60852: gnuradio-next: fatal error: 'endian.h' file not found

MacPorts noreply at macports.org
Mon Feb 21 08:12:14 UTC 2022


#60852: gnuradio-next: fatal error: 'endian.h' file not found
----------------------------+-----------------------
  Reporter:  ryandesign     |      Owner:  michaelld
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.2
Resolution:                 |   Keywords:
      Port:  gnuradio-next  |
----------------------------+-----------------------

Comment (by nospam2000):

 The following test program compiles and runs:


 {{{
 #include <stdio.h>
 #include <stdint.h>
 #include <machine/endian.h>

 int main(void)
 {
         uint16_t a = 0x1234;
         printf("%hx\n", htons(a));
 }
 }}}

 I don't know if this is the correct way is to include <machine/endian.h>,
 maybe someone else has more experience how to use includes which come from
 the "machine" folder.

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


More information about the macports-tickets mailing list