[pisa-src] r1614 - in trunk/community-operator: co_client.c pisa_cert.c pisa_cert.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 10 Nov 2009 16:58:25 +0100

Author: tjansen
Date: Tue Nov 10 16:58:24 2009
New Revision: 1614

Log:
Fixed community operator header includes.

Hopefully fixes a OpenWrt build error related to strptime not being declared.

Modified:
   trunk/community-operator/co_client.c
   trunk/community-operator/pisa_cert.c
   trunk/community-operator/pisa_cert.h

Modified: trunk/community-operator/co_client.c
==============================================================================
--- trunk/community-operator/co_client.c        Tue Nov 10 16:48:46 2009        
(r1613)
+++ trunk/community-operator/co_client.c        Tue Nov 10 16:58:24 2009        
(r1614)
@@ -3,22 +3,24 @@
  * All rights reserved.
  */
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <signal.h>
-#include <unistd.h>
-#include <dirent.h>
-
-#include "libpisa/global.h"
+#define _XOPEN_SOURCE
+#define _SVID_SOURCE
 
-#define __USE_XOPEN
+#include <dirent.h>
 #include <time.h>
+#include <signal.h>
+#include <string.h>
+#include <unistd.h>
+#include <netinet/in.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/select.h>
 
-#include "co_common_packets.h"
 #include "libpisa/cfg.h"
 #include "libpisa/debug.h"
+#include "libpisa/global.h"
 
+#include "co_common_packets.h"
 #include "pisa_cert.h" // Copied from HIPL firewall directory
 
 #define CERT_FILENAME_FORMAT "%Y%m%d%H%M%S"

Modified: trunk/community-operator/pisa_cert.c
==============================================================================
--- trunk/community-operator/pisa_cert.c        Tue Nov 10 16:48:46 2009        
(r1613)
+++ trunk/community-operator/pisa_cert.c        Tue Nov 10 16:58:24 2009        
(r1614)
@@ -9,6 +9,8 @@
  *
  * @author Thomas Jansen
  */
+
+#define _XOPEN_SOURCE
 #include "pisa_cert.h"
 
 #include <sys/types.h>

Modified: trunk/community-operator/pisa_cert.h
==============================================================================
--- trunk/community-operator/pisa_cert.h        Tue Nov 10 16:48:46 2009        
(r1613)
+++ trunk/community-operator/pisa_cert.h        Tue Nov 10 16:58:24 2009        
(r1614)
@@ -11,7 +11,6 @@
 #ifndef PISA_CERT_H
 #define PISA_CERT_H
 
-#define _XOPEN_SOURCE
 #include <time.h>
 #include <arpa/inet.h>
 

Other related posts:

  • » [pisa-src] r1614 - in trunk/community-operator: co_client.c pisa_cert.c pisa_cert.h - Thomas Jansen