backends: further flesh out "generic" target to build

By default let's assume we don't have to do some magical invocation
to unbreak the libc resolv.conf cache.
This commit is contained in:
Colin Walters 2012-01-10 13:07:48 -05:00 committed by Dan Williams
parent 659c22ccf6
commit 0b30200e4b
2 changed files with 17 additions and 0 deletions

View file

@ -140,6 +140,11 @@ else
esac
fi
AM_CONDITIONAL(TARGET_GENERIC, test x"$with_distro" = xgeneric)
if test x"$with_distro" = xgeneric; then
AC_DEFINE(TARGET_GENERIC, 1, [Define for a general unknown Linux system])
fi
AM_CONDITIONAL(TARGET_REDHAT, test x"$with_distro" = xredhat)
if test x"$with_distro" = xredhat; then
AC_DEFINE(TARGET_REDHAT, 1, [Define if you have Fedora or RHEL])

View file

@ -113,3 +113,15 @@ void nm_generic_update_dns (void)
{
}
#ifdef TARGET_GENERIC
void nm_backend_enable_loopback (void)
{
nm_generic_enable_loopback ();
}
void nm_backend_update_dns (void)
{
nm_generic_update_dns ();
}
#endif