]> git.mxchange.org Git - flightgear.git/commitdiff
Explicitely add -lpthread to the link line to avoid a long standing linux
authorcurt <curt>
Sat, 9 Sep 2000 15:48:14 +0000 (15:48 +0000)
committercurt <curt>
Sat, 9 Sep 2000 15:48:14 +0000 (15:48 +0000)
ld bug.

A couple namespace fixes to avoid problems with latest plib cvs on some
systems.

src/Cockpit/cockpit.hxx
src/Include/config.h.in
src/NetworkOLK/net_send.cxx

index fce2a0a297824c5ae9bd058970795ae7d22c58bf..5873cd67ed405dc0f8c6705767b2162fcf243050 100644 (file)
 class fg_Cockpit  {
   private:
     int  Code;
-    int  Status;
+    int  cockpitStatus;
 
   public:
-    fg_Cockpit   () : Code(1), Status(0) {};
+    fg_Cockpit   () : Code(1), cockpitStatus(0) {};
     int   code  ( void ) { return Code; }
-    int   status( void ) { return Status; }
+    int   status( void ) { return cockpitStatus; }
 };
 
 
index a930f361e1dedaaf39031d674550851ce177942c..2962401d4fbd708dab5b56da1624ee6ff3131a6c 100644 (file)
 /* Define if you have the m library (-lm).  */
 #undef HAVE_LIBM
 
+/* Define if you have the pthread library (-lpthread).  */
+#undef HAVE_LIBPTHREAD
+
 /* Define if you have the socket library (-lsocket).  */
 #undef HAVE_LIBSOCKET
 
index 5f5e1547aab9565cfce58de867d1ec62389c2df9..891e6f6aedfe7c00f201b33bc7425c01cc1f5b80 100644 (file)
@@ -90,8 +90,8 @@ extern char *FGFS_host, *net_callsign;
 
 /* List-stuff */
 
-const int True  = 0;
-const int False= -1;
+const int listTrue  = 0;
+const int listFalse= -1;
 
 struct list_ele {
    /* unsigned */ char ipadr[16], callsign[16];
@@ -198,10 +198,10 @@ struct list_ele *clr_ele;
 
 int list_not_in( char name[16]) {
    
-   i = True;
+   i = listTrue;
    test = head->next;
-   while ((test != tail) && (i==True)) {
-     i = (strcmp(test->ipadr, name) ? True : False);
+   while ((test != tail) && (i==listTrue)) {
+     i = (strcmp(test->ipadr, name) ? listTrue : listFalse);
      test = test->next;
      if (verbose != 0) printf("list_not_in : %d\n",i);
    }