Fix uuid on FreeBSD

In FreeBSD, just as in DARWIN, uuid functions are in libc and no external libuuid is required.
The API is quite different from Linux's though, so a different implementation of uuid () (util.cpp) is needed.
This commit is contained in:
Pietro Cerutti 2013-09-13 08:03:50 +02:00 committed by Paul Beckingham
parent 05afa911d3
commit da7cc6eed7
3 changed files with 31 additions and 4 deletions

View file

@ -32,7 +32,11 @@
#include <vector>
#include <map>
#include <sys/types.h>
#ifdef __FreeBSD__
#include <uuid.h>
#else
#include <uuid/uuid.h>
#endif
#include <Task.h>
// util.cpp