]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fixes for AIX 4 by Steve Williams - steve@genie96.com
authorRobert Colquhoun <rjc@trump.net.au>
Sun, 18 Jul 1999 13:19:33 +0000 (13:19 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Sun, 18 Jul 1999 13:19:33 +0000 (13:19 +0000)
Adds some AIX specific options to configure, and a minor change(reorder) to
the HylaFAXServer header file for the xlC compiler.

configure
hfaxd/HylaFAXServer.h

index 4cefbc23717445b167befd61c12005f91f969dfc..516a7b32f7b734df949932b383c83b58965c2e5e 100755 (executable)
--- a/configure
+++ b/configure
@@ -2316,6 +2316,7 @@ BuildPortDotH()
        *-univel-*)     CONFIG_SOCKARGLENTYPE=size_t;;
        *sysv4.2uw2*)   CONFIG_SOCKARGLENTYPE=size_t;;
        *-UnixWare*)    CONFIG_SOCKARGLENTYPE=size_t;;
+       *-aix4*)        CONFIG_SOCKARGLENTYPE=size_t;;
        *)              CONFIG_SOCKARGLENTYPE=int;;
        esac
     }
@@ -2657,8 +2658,9 @@ BuildPortDotH()
        if CheckForIncludeFile utmpx.h; then
            case $TARGET in
            *-hpux10.20*)       UTMP=utmp;;
-        *-linux*)          UTMP=utmp;;
-           *)                      UTMP=utmpx;;
+           *-aix4*)    UTMP=utmp;;
+        *-linux*)      UTMP=utmp;;
+           *)                  UTMP=utmpx;;
            esac
        else
            UTMP=utmp;
index f76b435c3e4d15e2c6942939464c238a8b8fb142..b6fd5485bf72562aaef7f72521b18fbd588c9c9b 100644 (file)
@@ -130,39 +130,13 @@ enum Token {
 
 struct tab {                   // protocol command table entry
     const char*        name;
-    Token      token;
-    bool       checklogin;     // if true, must be logged in first
-    bool       implemented;    // false if command is not implemented
+    Token token;
+    bool checklogin;   // if true, must be logged in first
+    bool implemented;  // false if command is not implemented
     const char*        help;
 };
 
-class HylaFAXServer;
-
-/*
- * Directories in the spooling area are treated
- * specially to hide implementation details and
- * privileged information that clients have no
- * business seeing.  Also we implement an access
- * control system that is built on top of the
- * normal UNIX protection mechanisms.
- */ 
-struct SpoolDir {
-    const char*        pathname;
-    bool       adminOnly;      // accessible by unprivileged clients
-    bool       storAble;       // unprivileged clients may STOR files
-    bool       deleAble;       // unprivileged clients may DELE files
-    ino_t      ino;            // directory inode number
-    bool (*isVisibleFile)(const char*, const struct stat&);
-    void (HylaFAXServer::*listDirectory)(FILE*, const SpoolDir&, DIR*);
-    void (HylaFAXServer::*listFile)(FILE*, const SpoolDir&,
-       const char*, const struct stat&);
-    void (HylaFAXServer::*nlstDirectory)(FILE*, const SpoolDir&, DIR*);
-    void (HylaFAXServer::*nlstFile)(FILE*, const SpoolDir&,
-       const char*, const struct stat&);
-    void (HylaFAXServer::*delFile)(const SpoolDir&, const char*);
-    void (HylaFAXServer::*retrFile)(const SpoolDir&, const char*);
-    void (HylaFAXServer::*storFile)(const SpoolDir&, const char*);
-};
+class SpoolDir;
 
 struct stat;
 typedef struct tiff TIFF;
@@ -179,14 +153,14 @@ extern const char* fmtTime(time_t t);
 class HylaFAXServer : public Syslog, public FaxConfig, public IOHandler {
 public:
     struct stringtag {
-       const char*      name;
-       fxStr HylaFAXServer::* p;
-       const char*      def;           // NULL is shorthand for ""
+        const char*     name;
+        fxStr HylaFAXServer::* p;
+        const char*     def;           // NULL is shorthand for ""
     };
     struct numbertag {
-       const char*      name;
-       u_int HylaFAXServer::*p;
-       u_int            def;
+        const char*     name;
+        u_int HylaFAXServer::*p;
+        u_int           def;
     };
 protected:
     u_int      state;
@@ -594,5 +568,32 @@ public:
 };
 inline void HylaFAXServer::pushToken(Token t)          { pushedToken = t; }
 
+/*
+ * Directories in the spooling area are treated
+ * specially to hide implementation details and
+ * privileged information that clients have no
+ * business seeing.  Also we implement an access
+ * control system that is built on top of the
+ * normal UNIX protection mechanisms.
+ */ 
+struct SpoolDir {
+    const char*        pathname;
+    bool adminOnly;    // accessible by unprivileged clients
+    bool storAble;     // unprivileged clients may STOR files
+    bool deleAble;     // unprivileged clients may DELE files
+    ino_t ino;         // directory inode number
+    bool (*isVisibleFile)(const char*, const struct stat&);
+    void (HylaFAXServer::*listDirectory)(FILE*, const SpoolDir&, DIR*);
+    void (HylaFAXServer::*listFile)(FILE*, const SpoolDir&,
+        const char*, const struct stat&);
+    void (HylaFAXServer::*nlstDirectory)(FILE*, const SpoolDir&, DIR*);
+    void (HylaFAXServer::*nlstFile)(FILE*, const SpoolDir&,
+        const char*, const struct stat&);
+    void (HylaFAXServer::*delFile)(const SpoolDir&, const char*);
+    void (HylaFAXServer::*retrFile)(const SpoolDir&, const char*);
+    void (HylaFAXServer::*storFile)(const SpoolDir&, const char*);
+};
+
 #define        IS(x)   ((state & (S_##x)) != 0)
+
 #endif /* _HylaFAXServer_ */