From cd28c9870084407730c31e9e5a5cf434c2419f90 Mon Sep 17 00:00:00 2001 From: Ian Craggs <10279016+icraggs@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:54:01 +0100 Subject: [PATCH] Update Thread.c - fix MacOS build warning --- src/Thread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Thread.c b/src/Thread.c index f8b5279f..28b410aa 100644 --- a/src/Thread.c +++ b/src/Thread.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2023 IBM Corp. and Ian Craggs + * Copyright (c) 2009, 2025 IBM Corp. and Ian Craggs * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 @@ -51,7 +51,9 @@ #include "OsWrapper.h" +#if !defined(NSEC_PER_SEC) #define NSEC_PER_SEC 1000000000L +#endif /** * Start a new thread