#undef HAVE_GETHOSTBYNAME_R
 
 #undef HAVE_INET_PTON
+
+#undef HAVE_SOCKLEN_T
  
 #undef HAVE_BIGENDIAN
 
 /* Define to `int' if <sys/types.h> doesn't define.  */
 #undef ssize_t
 
-/* Set if socklen_t defined */
-#undef HAVE_SOCKLEN_T
+/* Set if socklen_t is not defined  in sys/types.h */
+#undef socklen_t
 
 /* Define if you want to use MySQL */
 #undef HAVE_MYSQL
 
 #undef HAVE_INET_PTON
 
+#undef HAVE_SOCKLEN_T
+
  
 #undef HAVE_BIGENDIAN
 
 
 /* Define for large files, on AIX-style hosts. */
 #undef _LARGE_FILES
+
 
 PFILES="platforms/Makefile"
 PSCMD="ps -e"
 WIN32=
-hostname=`hostname`
+hostname=`uname -n`
 case "$DISTNAME" in
 aix)
        DISTVER=`uname -r`
        DISTVER=`uname -r`
        TAPEDRIVE="/dev/rmt/0cbn"
        PSCMD="ps -e -o pid,comm"
-       hostname=`/usr/bsd/hostname -s`
        PFILES="${PFILES} \
            platforms/irix/Makefile \
            platforms/irix/bacula-fd \
 
 PFILES="platforms/Makefile"
 PSCMD="ps -e"
 WIN32=
-hostname=`hostname`
+hostname=`uname -n`
 case "$DISTNAME" in
 aix)
        DISTVER=`uname -r`
        DISTVER=`uname -r`
        TAPEDRIVE="/dev/rmt/0cbn"
        PSCMD="ps -e -o pid,comm"
-       hostname=`/usr/bsd/hostname -s`
        PFILES="${PFILES} \
            platforms/irix/Makefile \
            platforms/irix/bacula-fd \
 
 #endif
 
 #ifdef HAVE_AIX_OS
-#define crid_t int
-#define class_id_t unsigned int
 #endif
  
-
+/* This probably should be done on a machine by machine basic, but it works */
 #define ALIGN_SIZE (sizeof(double))
 #define BALIGN(x) (((x) + ALIGN_SIZE - 1) & ~(ALIGN_SIZE -1))