Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Missing OS X patch for run_erl.c

sean.hinde at mac.com
Posted: Sat Sep 13, 2003 5:29 pm Reply with quote
Guest
Hi,

R9C-0 is missing the following patch from the large patch I submitted
for R9B-1. Without it OS X cannot create the pipe.

Regards,
Sean

[HugeMac:~/Desktop] sean% diff -u
otp_src_R9C-0.orig/erts/etc/unix/run_erl.c
otp_src_R9C-0/erts/etc/unix/run_erl.c
--- otp_src_R9C-0.orig/erts/etc/unix/run_erl.c Mon Jul 7 13:01:10 2003
+++ otp_src_R9C-0/erts/etc/unix/run_erl.c Sat Sep 13 18:26:53 2003
_at__at_ -738,7 +738,11 _at__at_
*/
static int create_fifo(char *name, int perm)
{
- if ((mknod(name, S_IFIFO | perm, 0) < 0) && (errno != EEXIST))
+#ifdef HAVE_MACH_O_DYLD_H
+ if ((mkfifo(name, perm) < 0) && (errno != EEXIST))
+#else
+ if ((mknod(name, S_IFIFO | perm, 0) < 0) && (errno != EEXIST))
+#endif
return -1;
return 0;
}



Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum