X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawnattr_getschedparam.c;h=e170f18d5ad209ce9f5d718f986137ff1681271e;hb=e16561484b19d960cbb07bd82033155b2979c4f0;hp=4ac9c458793a82b57e128633b3bae0fc904b31e8;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/spawnattr_getschedparam.c b/lib/spawnattr_getschedparam.c index 4ac9c4587..e170f18d5 100644 --- a/lib/spawnattr_getschedparam.c +++ b/lib/spawnattr_getschedparam.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2008, 2009, 2010 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2008-2012 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_getschedparam (const posix_spawnattr_t *attr, struct sched_param *schedparam) { + /* Do nothing if POSIX_SPAWN_SETSCHEDPARAM is unsupported. */ +#if POSIX_SPAWN_SETSCHEDPARAM != 0 /* Copy the scheduling parameters. */ *schedparam = attr->_sp; +#endif return 0; }