From e32022c8085fc6b05ed690f9b4b49536d8df13b1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 26 Jan 2018 09:23:13 -0800 Subject: fixes #223 Double definition of -DNNG_PLATFORM_POSIX for Darwin platform --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5aa87034..f3f39241 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,11 @@ # # Copyright 2017 Garrett D'Amore -# Copyright 2017 Capitar IT Group BV # Copyright (c) 2012 Martin Sustrik All rights reserved. # Copyright (c) 2013 GoPivotal, Inc. All rights reserved. # Copyright (c) 2015-2016 Jack R. Dunaway. All rights reserved. # Copyright 2016 Franklin "Snaipe" Mathieu -# Copyright 2017 Staysail Systems, Inc. +# Copyright 2018 Staysail Systems, Inc. +# Copyright 2018 Capitar IT Group BV # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), @@ -262,7 +262,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux") elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_definitions (-DNNG_PLATFORM_POSIX) - add_definitions (-DNNG_PLATFORM_POSIX) + add_definitions (-DNNG_PLATFORM_DARWIN) # macOS 10.12 and later have getentropy, but the older releases # have ARC4_RANDOM, and that is sufficient to our needs. add_definitions (-DNNG_USE_ARC4_RANDOM) -- cgit v1.2.3-70-g09d2