build: fix test-nss.c build failure with --disable-{resolved,myhostname} (#3081)
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 21 Apr 2016 10:13:08 +0000 (12:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Apr 2016 10:13:08 +0000 (12:13 +0200)
commit48062f072c7ba679667a309a76f71d595f0287e7
treef508de1b849d66927e8e12328bbdb525ba9c2773
parent964b26fe2127d28713bccf03603900a7691216ba
build: fix test-nss.c build failure with --disable-{resolved,myhostname} (#3081)

When building without resolved and/or myhostname, test-nss.c failed to build
with

  src/test/test-nss.c: In function 'main':
  src/test/test-nss.c:417:32: error: 'MODULE1' undeclared (first use in this function)
           NULSTR_FOREACH(module, MODULE1 MODULE2 MODULE3 MODULE4) {
                                ^

Ensure that all MODULEx are always defined, and empty if the module is not
available (so that it will be a no-op in the string concatenation).
src/test/test-nss.c