signal11 / PlayCap

Performs playback of tcpdump, windump, Wireshark, and libpcap files.

Home Page:http://www.signal11.us/oss/playcap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

need unistd.h

guidotorresmx opened this issue · comments

I had to add #include <unistd.h> in PlayBackWindow.cpp because of an issue related to the usage of usleep(SLEEP_MILLIS*1000); in line 340.
im under linux mint 18

I can confirm adding #include <unistd.h> fixes the build in ubuntu 16.04.

I can confirm adding #include <unistd.h> fixes the build in ubuntu 20.04.

Confirmed. Still works. arch linux

PlaybackWindow.cpp looks like:

#include <stdio.h>
#include <pcap.h>
#include <pthread.h>
#include <unistd.h>
 
#include "PlaybackWindow.h"
#include "InterfaceWindow.h"
#include "AboutWindow.h"
....