[BZ,17956] Fix nss tests build failure due to missing definitions from header file nss.h when Mozilla NSS is used
Commit Message
A build failure occurs when glibc is configured with the --enable-nss-crypt
option in order to use Mozilla NSS library for cryptography and the
tests are built and executed by running "make check".
Such failure is due to conflicting "nss.h" header files: one from GNU
glibc and the other from the Mozilla NSS library (usually located at
/usr/include/nss3/nss.h).
This patch aims to fix such build failure (BZ 17956) by helping the
preprocessor pick the right (local) "nss.h" header file during compilation
of the tests.
Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
---
nss/nss_test1.c | 2 +-
nss/tst-field.c | 2 +-
nss/tst-nss-test1.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
@@ -1,5 +1,5 @@
#include <errno.h>
-#include <nss.h>
+#include "nss.h"
#include <pthread.h>
#include <string.h>
@@ -19,7 +19,7 @@
/* This test needs to be statically linked because it access hidden
functions. */
-#include <nss.h>
+#include "nss.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -1,4 +1,4 @@
-#include <nss.h>
+#include "nss.h"
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>