#include "config.h"
#include <cstring>
/* Blob of globals since sighandler needs them */
vector<string> postcli_err;
pid_t srvpid = -1, clipid = -1;
#include "ringbuf.h"
RingBuffer::RingBuffer(int in_size) {
ring_len = in_size;
ring_data = new uint8_t[in_size];
#include <sys/stat.h>
#include <fcntl.h>
// We need this to make uclibc happy since they don't even have rintf...
#ifndef rintf
#define rintf(x) (float) rint((double) (x))