X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawnattr_setschedparam.c;h=d23dff320d87043981ecbd48af6da3d58340bf46;hb=25a6731afb775d2fe8ab53ea944158137d458462;hp=c1c2888eea307134af60541ca2b12ba4a2897bf2;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/spawnattr_setschedparam.c b/lib/spawnattr_setschedparam.c index c1c2888ee..d23dff320 100644 --- a/lib/spawnattr_setschedparam.c +++ b/lib/spawnattr_setschedparam.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2009-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -24,8 +24,11 @@ int posix_spawnattr_setschedparam (posix_spawnattr_t *attr, const struct sched_param *schedparam) { + /* Do nothing if POSIX_SPAWN_SETSCHEDPARAM is unsupported. */ +#if POSIX_SPAWN_SETSCHEDPARAM != 0 /* Store the scheduling parameters. */ attr->_sp = *schedparam; +#endif return 0; }