X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawnattr_getschedparam.c;h=20950887b2c0e1c4c9d420a872d940fb6d734e45;hb=a77413333408e54b8d6c4e19918098794cef4b4b;hp=4ac9c458793a82b57e128633b3bae0fc904b31e8;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/spawnattr_getschedparam.c b/lib/spawnattr_getschedparam.c index 4ac9c4587..20950887b 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-2013 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; }