Permalink
Browse files

Disable call to gethostid() for QNX NTO.

1 parent a0e0269 commit 5110c9667e1da9f278dd9e258f923303297b73a2 @hungc hungc committed Oct 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/erl_interface/src/connect/ei_connect.c
@@ -1154,7 +1154,9 @@ static unsigned int gen_challenge(void)
struct timeval tv;
clock_t cpu;
pid_t pid;
+#if !defined(__QNXNTO__)
u_long hid;
+#endif
uid_t uid;
gid_t gid;
struct utsname name;
@@ -1164,7 +1166,9 @@ static unsigned int gen_challenge(void)
uname(&s.name);
s.cpu = clock();
s.pid = getpid();
+#if !defined(__QNXNTO__)
s.hid = gethostid();
+#endif
s.uid = getuid();
s.gid = getgid();

0 comments on commit 5110c96

Please sign in to comment.