Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
pktanon: fix inreplace
Browse files Browse the repository at this point in the history
Closes #43084.
  • Loading branch information
tdsmith committed Aug 25, 2015
1 parent e112a91 commit 96432e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Library/Formula/pktanon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ class Pktanon < Formula

def install
# fix compile failure caused by undefined function 'sleep'.
inreplace "src/Timer.cpp", %(#include "Timer.h"
),
%(#include "Timer.h"
#include "unistd.h"
)
inreplace "src/Timer.cpp", %(#include "Timer.h"\r\n),
%(#include "Timer.h"\r\n#include "unistd.h"\r\n)

# include the boost system library to resolve compilation errors
ENV["LIBS"] = "-lboost_system-mt"
Expand Down

0 comments on commit 96432e7

Please sign in to comment.