summaryrefslogblamecommitdiff
path: root/libgcompat/version.c
blob: 1b7687c5d1b7d478e5c8a72b6a704d8d8d1ea7ee (plain) (tree)
1
2
3
                              
                                
 














                                                                


                                                 
 


                            


                   
#include <stddef.h> /* NULL */
#include <stdlib.h> /* getenv */

/**
 * Get glibc release.
 *
 * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html
 */
const char *gnu_get_libc_release(void)
{
	return "stable";
}

/**
 * Get glibc version.
 *
 * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html
 */
const char *gnu_get_libc_version(void)
{
	char *ver = getenv("GLIBC_FAKE_VERSION");

	if (ver == NULL) {
		ver = "2.8";
	}

	return ver;
}