]> git.puffer.fish Git - mirror/frr.git/commitdiff
Unbreak compilation with ospfapi disabled. We should seriously think about
authorhasso <hasso>
Wed, 13 Oct 2004 09:32:48 +0000 (09:32 +0000)
committerhasso <hasso>
Wed, 13 Oct 2004 09:32:48 +0000 (09:32 +0000)
reducing various configure options.

ospfd/ChangeLog
ospfd/ospf_main.c

index f90a933e96456638a51e4035275470cc3005edf4..10d265835beac4b888522253da570cea97348dc4 100644 (file)
@@ -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>
 
        * ospf_main.c, ospf_opaque.c: Unbreak ospfclient compilation - move
index 7e4d45d3cd45bd022181c19c020df2a196e91c99..67912d6ad63a409041a58a7c89f970c469f26f15 100644 (file)
@@ -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);