diff options
author | hasso <hasso> | 2004-10-13 11:32:48 +0200 |
---|---|---|
committer | hasso <hasso> | 2004-10-13 11:32:48 +0200 |
commit | d68614db1dc36a6814fee33f584417b1441a83e4 (patch) | |
tree | 0522831d0dfd9a4f23959532e3110f46fc88b49c /ospfd/ospf_main.c | |
parent | All access lists (IPv4 and IPv6) are used by all daemons to limit access to (diff) | |
download | frr-d68614db1dc36a6814fee33f584417b1441a83e4.tar.xz frr-d68614db1dc36a6814fee33f584417b1441a83e4.zip |
Unbreak compilation with ospfapi disabled. We should seriously think about
reducing various configure options.
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r-- | ospfd/ospf_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 7e4d45d3c..67912d6ad 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -100,7 +100,9 @@ struct thread_master *master; /* Process ID saved for use by init system */ const char *pid_file = PATH_OSPFD_PID; +#ifdef SUPPORT_OSPF_API extern int ospf_apiserver_enable; +#endif /* SUPPORT_OSPF_API */ /* Help information display. */ static void @@ -204,8 +206,10 @@ main (int argc, char **argv) /* OSPF master init. */ ospf_master_init (); +#ifdef SUPPORT_OSPF_API /* OSPF apiserver is disabled by default. */ ospf_apiserver_enable = 0; +#endif /* SUPPORT_OSPF_API */ while (1) { @@ -246,9 +250,11 @@ main (int argc, char **argv) case 'u': ospfd_privs.group = ospfd_privs.user = optarg; break; +#ifdef SUPPORT_OSPF_API case 'a': ospf_apiserver_enable = 1; break; +#endif /* SUPPORT_OSPF_API */ case 'v': print_version (progname); exit (0); |