b81db930bed0159675a1459c7c651d3d1e4fa34a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libnss / 0002-uclibc.patch
1 uCLibc does not define RTLD_NOLOAD.
2
3 [Gustavo: update for nss 3.16.1]
4 Signed-off-by: Will Newton <will.newton@imgtec.com>
5
6 diff -Nura nss-3.16.1.orig/nss/lib/freebl/stubs.c nss-3.16.1/nss/lib/freebl/stubs.c
7 --- nss-3.16.1.orig/nss/lib/freebl/stubs.c      2014-06-18 10:34:30.529997002 -0300
8 +++ nss-3.16.1/nss/lib/freebl/stubs.c   2014-06-18 10:36:25.508882650 -0300
9 @@ -594,6 +594,11 @@
10      return SECSuccess;
11  }
12  
13 +/* uClibc does not define RTLD_NOLOAD. */
14 +#ifndef RTLD_NOLOAD
15 +#define RTLD_NOLOAD 0
16 +#endif
17 +
18  /*
19   * fetch the library if it's loaded. For NSS it should already be loaded
20   */