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 +