[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] PATCH: fix NSSWITCH build failure



This patch appears to fix the NSSWITCH build failure reported here:

http://www.eglibc.org/archives/patches/msg00363.html

The hack is consistent with what is done with internal_function in other places, e.g. malloc/malloc.c.

OK to commit?

-Sandra

2007-11-08  Sandra Loosemore  <sandra@xxxxxxxxxxxxxxxx>

	* nss/gen-fixed-nsswitch.c (internal_function):  Provide a fallback
	definition.


Index: nss/gen-fixed-nsswitch.c
===================================================================
*** nss/gen-fixed-nsswitch.c	(revision 4099)
--- nss/gen-fixed-nsswitch.c	(working copy)
***************
*** 30,35 ****
--- 30,41 ----
  #include "gnu/lib-names.h"
  #include "nss.h"
  
+ /* Provide a fallback definition to allow this file to be compiled outside
+    libc.  */
+ #ifndef internal_function
+ # define internal_function
+ #endif
+ 
  
  /* Simple utilities.  */