Skip to content

Commit

Permalink
using new eapi
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyrog committed May 23, 2012
1 parent b13afdb commit 817ee19
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
1 change: 1 addition & 0 deletions c_src/.gitignore
@@ -0,0 +1 @@
*.o
10 changes: 3 additions & 7 deletions c_src/can_sock_drv_impl.c
Expand Up @@ -33,13 +33,9 @@
#include <sys/ioctl.h>
#include <net/if.h>

#if defined(linux)
#include "can.h"
#include "can/raw.h"
#elif defined(__APPLE__)
#include "can.h"
#include "can/raw.h"
#endif
#include <linux/can.h>
#include <linux/can/raw.h>


#ifndef PF_CAN
#define PF_CAN 29
Expand Down
1 change: 0 additions & 1 deletion obj/debug/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion obj/release/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion priv/debug/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion priv/release/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions rebar.config
Expand Up @@ -7,8 +7,8 @@
{sub_dirs, ["src"]}.
{port_env, [
{"CFLAGS", "$CFLAGS -I ../eapi/include"},
{"LDFLAGS", "$LDFLAGS ../eapi/lib/release/eapi_drv.a"}
{"LDFLAGS", "$LDFLAGS ../eapi/c_src/eapi_drv_lib.o"}
]}.
{port_specs, [
{"linux","priv/release/can_sock_drv.so",["c_src/*.c"]}
{"linux","priv/can_sock_drv.so",["c_src/*.c"]}
]}.

0 comments on commit 817ee19

Please sign in to comment.