diff options
Diffstat (limited to 'nscd/nscd_conf.c')
-rw-r--r-- | nscd/nscd_conf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nscd/nscd_conf.c b/nscd/nscd_conf.c index 2e6f8127a7..8a312ff459 100644 --- a/nscd/nscd_conf.c +++ b/nscd/nscd_conf.c @@ -224,7 +224,10 @@ nscd_parse_file (const char *fname, struct database_dyn dbs[lastdb]) if (strcmp (arg2, "no") == 0) dbs[cnt].shared = 0; else if (strcmp (arg2, "yes") == 0) - dbs[cnt].shared = 1; +#ifndef atomic_supports_shared +#define atomic_supports_shared 1 +#endif + dbs[cnt].shared = atomic_supports_shared; break; } if (cnt == lastdb) |