Changeset 31206 for trunk/dports/games


Ignore:
Timestamp:
Nov 18, 2007, 10:13:34 AM (12 years ago)
Author:
afb@…
Message:

fix building on leopard, and probably panther too (#13020)

Location:
trunk/dports/games/fortune
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/fortune/Portfile

    r30319 r31206  
    2323patchfiles      \
    2424                patch-fortune-Makefile patch-strfile-Makefile \
    25                 patch-unstr-Makefile patch-datfiles-Makefile
     25                patch-unstr-Makefile patch-datfiles-Makefile \
     26                patch-strfile.h
    2627
    2728configure {
  • trunk/dports/games/fortune/files/patch-fortune.c

    r30319 r31206  
    2020+#elif defined(__APPLE__) && defined(__MACH__)
    2121+# include      <machine/endian.h>
    22 +# define be32toh OSSwapBigToHostInt32
     22+# define be32toh ntohl
    2323+#else
    2424+# include      <netinet/in.h>
  • trunk/dports/games/fortune/files/patch-strfile.c

    r30319 r31206  
    2020+#elif defined(__APPLE__) && defined(__MACH__)
    2121+# include      <machine/endian.h>
    22 +# define htobe32 OSSwapHostToBigInt32
     22+# define htobe32 htonl
    2323+#else
    2424+# include      <netinet/in.h>
  • trunk/dports/games/fortune/files/patch-unstr.c

    r30319 r31206  
    99+#elif defined(__APPLE__) && defined(__MACH__)
    1010+# include      <machine/endian.h>
    11 +# define be32toh OSSwapBigToHostInt32
     11+# define be32toh ntohl
    1212+#else
    1313+# include      <netinet/in.h>
Note: See TracChangeset for help on using the changeset viewer.