opnsense-ports/sysutils/mpiexec/files/patch-psm.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

23 lines
583 B
C

--- psm.c.orig 2012-03-12 02:52:24.120253238 +0600
+++ psm.c 2012-03-12 02:53:17.264235224 +0600
@@ -209,8 +209,7 @@
#include <netdb.h>
#include <sys/socket.h>
#include <sys/time.h>
-#include <endian.h>
-#include <byteswap.h>
+#include <sys/endian.h>
#include "mpiexec.h"
#ifdef HAVE_POLL
@@ -221,8 +220,8 @@
# define ntohu64(x) (x)
# define htonu64(x) (x)
#elif __BYTE_ORDER == __LITTLE_ENDIAN
-# define ntohu64(x) __bswap_64(x)
-# define htonu64(x) __bswap_64(x)
+# define ntohu64(x) bswap64(x)
+# define htonu64(x) bswap64(x)
#endif
#define EPID_INFO_GLOBAL 2