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"
....