From 933b2d8ebe20a58cdbe2feee0888a9d9954f062c Mon Sep 17 00:00:00 2001 From: "Kent R. Spillner" Date: Fri, 15 Jan 2016 12:35:10 -0500 Subject: [PATCH] OpenBSD also provides uuid support directly in its libc, same as FreeBSD. --- AUTHORS | 1 + ChangeLog | 1 + src/util.cpp | 2 +- src/util.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index e13a3f483..16fb65832 100644 --- a/AUTHORS +++ b/AUTHORS @@ -125,6 +125,7 @@ The following submitted code, packages or analysis, and deserve special thanks: RafaƂ Bolanowski Sunil Joshi Misty De Meo + Kent R. Spillner Thanks to the following, who submitted detailed bug reports and excellent suggestions: diff --git a/ChangeLog b/ChangeLog index 1fb70e545..ea6e3c83f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,7 @@ - Numerous performance improvements. Taskwarrior 2.5.1 is between X% and Y% faster than 2.5.0 when running various commands. - New formatting specifier 'relative' for columns of Date type was introduced. +- Improved OpenBSD support (thanks to Kent R. Spillner). ------ current release --------------------------- diff --git a/src/util.cpp b/src/util.cpp index 89c0736e2..9b07c09af 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -204,7 +204,7 @@ int autoComplete ( // representation is always lowercase anyway. // For the implementation details, refer to // http://svnweb.freebsd.org/base/head/sys/kern/kern_uuid.c -#ifdef FREEBSD +#if defined(FREEBSD) || defined(OPENBSD) const std::string uuid () { uuid_t id; diff --git a/src/util.h b/src/util.h index 2fb9538c2..cec0ae8b5 100644 --- a/src/util.h +++ b/src/util.h @@ -32,7 +32,7 @@ #include #include #include -#ifdef FREEBSD +#if defined(FREEBSD) || defined(OPENBSD) #include #else #include