Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jun 2, 2019
1 parent 511b451 commit 2f753bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ ifeq ($(CROSSCOMPILE),)
$(warning and $$ERL_EI_LIBDIR. See Makefile for details. If using Nerves,)
$(warning this should be done automatically.)
$(warning .)
$(warning Skipping C compilation unless targets explicitly passed to make.)
#DEFAULT_TARGETS = $(PREFIX)
$(warning Skipping some C compilation unless targets explicitly passed to make.)
DEFAULT_TARGETS ?= $(PREFIX) $(PREFIX)/to_elixir $(PREFIX)/udhcpc_handler
endif
endif
DEFAULT_TARGETS ?= $(PREFIX) $(PREFIX)/to_elixir $(PREFIX)/udhcpc_handler $(PREFIX)/ifchange
Expand Down
2 changes: 1 addition & 1 deletion lib/vintage_net/interfaces_monitor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule VintageNet.InterfacesMonitor do

@impl true
def init(_args) do
executable = Path.join(:code.priv_dir(:vintage_net), "ifchange")
executable = :code.priv_dir(:vintage_net) ++ '/ifchange'
port = Port.open({:spawn_executable, executable}, [{:packet, 2}, :use_stdio, :binary])

state = %State{port: port}
Expand Down

0 comments on commit 2f753bd

Please sign in to comment.