From 0b30200e4bac89c43937976996efce588dd8593f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 10 Jan 2012 13:07:48 -0500 Subject: [PATCH] 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. --- configure.ac | 5 +++++ src/backends/NetworkManagerGeneric.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index 955e2e4dbb..49ef52f484 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/backends/NetworkManagerGeneric.c b/src/backends/NetworkManagerGeneric.c index 89b8a46dde..614460f80a 100644 --- a/src/backends/NetworkManagerGeneric.c +++ b/src/backends/NetworkManagerGeneric.c @@ -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 +