Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] run.sh simplified

  • Loading branch information...
commit 4523ab55e769fc43a870285758149274b2726650 1 parent 5533b72
@bmeck authored
Showing with 6 additions and 4 deletions.
  1. +2 −2 fixtures/nix.c
  2. +4 −2 fixtures/run.sh
View
4 fixtures/nix.c
@@ -1,11 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <dlfcn.h>
#include <sys/socket.h>
-#include <sys/types.h>
#include <netinet/in.h>
#include <errno.h>
+//#include <unistd.h>
+//#include <sys/types.h>
static int __interposed_CHANNEL_FD = 1;
static int __interposed_active = 0;
View
6 fixtures/run.sh
@@ -1,6 +1,8 @@
OS=$(uname -s)
+export NODE_CHANNEL_FD=1
if [ "$OS" == "Darwin" ]; then
- DYLD_INSERT_LIBRARIES=`pwd`/nix.dylib ./a.out
+ export DYLD_INSERT_LIBRARIES=`pwd`/nix.dylib
elif [ "$OS" == "SunOS" ]; then
- LD_PRELOAD=`pwd`/nix.so ./a.out
+ export LD_PRELOAD=`pwd`/nix.so ./a.out
fi
+./a.out

0 comments on commit 4523ab5

Please sign in to comment.
Something went wrong with that request. Please try again.