X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fspawnattr_setschedparam.c;h=ce0b36fea60ff9823bbf3622eca36e3466e8d941;hb=43593319b31e6b0175b8eec4433bac744959822d;hp=4e832c7e14fcb5dd431a3e7a1cf6bb4398bfe027;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/spawnattr_setschedparam.c b/lib/spawnattr_setschedparam.c index 4e832c7e1..ce0b36fea 100644 --- a/lib/spawnattr_setschedparam.c +++ b/lib/spawnattr_setschedparam.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2009-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_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; }