forked from Mirror/frr
Unbreak compilation with ospfapi disabled. We should seriously think about
reducing various configure options.
This commit is contained in:
parent
43fb1352a1
commit
d68614db1d
|
@ -1,3 +1,7 @@
|
||||||
|
2004-10-13 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
|
* ospf_main.c: Unbreak compilation with ospfapi disabled.
|
||||||
|
|
||||||
2004-10-12 Hasso Tepper <hasso at quagga.net>
|
2004-10-12 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
* ospf_main.c, ospf_opaque.c: Unbreak ospfclient compilation - move
|
* ospf_main.c, ospf_opaque.c: Unbreak ospfclient compilation - move
|
||||||
|
|
|
@ -100,7 +100,9 @@ struct thread_master *master;
|
||||||
/* Process ID saved for use by init system */
|
/* Process ID saved for use by init system */
|
||||||
const char *pid_file = PATH_OSPFD_PID;
|
const char *pid_file = PATH_OSPFD_PID;
|
||||||
|
|
||||||
|
#ifdef SUPPORT_OSPF_API
|
||||||
extern int ospf_apiserver_enable;
|
extern int ospf_apiserver_enable;
|
||||||
|
#endif /* SUPPORT_OSPF_API */
|
||||||
|
|
||||||
/* Help information display. */
|
/* Help information display. */
|
||||||
static void
|
static void
|
||||||
|
@ -204,8 +206,10 @@ main (int argc, char **argv)
|
||||||
/* OSPF master init. */
|
/* OSPF master init. */
|
||||||
ospf_master_init ();
|
ospf_master_init ();
|
||||||
|
|
||||||
|
#ifdef SUPPORT_OSPF_API
|
||||||
/* OSPF apiserver is disabled by default. */
|
/* OSPF apiserver is disabled by default. */
|
||||||
ospf_apiserver_enable = 0;
|
ospf_apiserver_enable = 0;
|
||||||
|
#endif /* SUPPORT_OSPF_API */
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
@ -246,9 +250,11 @@ main (int argc, char **argv)
|
||||||
case 'u':
|
case 'u':
|
||||||
ospfd_privs.group = ospfd_privs.user = optarg;
|
ospfd_privs.group = ospfd_privs.user = optarg;
|
||||||
break;
|
break;
|
||||||
|
#ifdef SUPPORT_OSPF_API
|
||||||
case 'a':
|
case 'a':
|
||||||
ospf_apiserver_enable = 1;
|
ospf_apiserver_enable = 1;
|
||||||
break;
|
break;
|
||||||
|
#endif /* SUPPORT_OSPF_API */
|
||||||
case 'v':
|
case 'v':
|
||||||
print_version (progname);
|
print_version (progname);
|
||||||
exit (0);
|
exit (0);
|
||||||
|
|
Loading…
Reference in a new issue