]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
conditionally declare stacksize
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 21:37:33 +0000 (08:37 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 03:08:26 +0000 (14:08 +1100)
lib/isc/pthreads/thread.c
util/copyrights

index 78252dd78d61e336f57ffc45916d53a92b31f59c..c07b35976da480ba12524dbdad8dff2d02d1f185 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2000, 2001, 2003-2005, 2007, 2013, 2016, 2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2000, 2001, 2003-2005, 2007, 2013, 2016-2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -28,7 +28,10 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
                  isc_thread_t *thread)
 {
        pthread_attr_t attr;
+#if defined(HAVE_PTHREAD_ATTR_GETSTACKSIZE) && \
+    defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE)
        size_t stacksize;
+#endif
        int ret;
 
        pthread_attr_init(&attr);
index f88ed5e3f38b60010f826d1f9de1d7ce879c2f51..6244a713f4f31835a120fcab02619f323a9374bb 100644 (file)
 ./lib/isc/pthreads/include/isc/once.h          C       1999,2000,2001,2004,2005,2007,2016
 ./lib/isc/pthreads/include/isc/thread.h                C       1998,1999,2000,2001,2004,2005,2007,2013,2016,2017
 ./lib/isc/pthreads/mutex.c                     C       2000,2001,2002,2004,2005,2007,2008,2011,2012,2014,2015,2016
-./lib/isc/pthreads/thread.c                    C       2000,2001,2003,2004,2005,2007,2013,2016,2017
+./lib/isc/pthreads/thread.c                    C       2000,2001,2003,2004,2005,2007,2013,2016,2017,2018
 ./lib/isc/quota.c                              C       2000,2001,2004,2005,2007,2016
 ./lib/isc/radix.c                              C       2007,2008,2009,2011,2012,2013,2014,2015,2016
 ./lib/isc/random.c                             C       1999,2000,2001,2002,2003,2004,2005,2007,2009,2013,2014,2016,2017