tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joyce.F...@statcan.ca
Subject Help with Code in jk_nwmain.c.
Date Fri, 08 Jun 2001 19:59:27 GMT



I am trying to compile mod_jk in HPUX11.00 in 32 bit mode. I am using
Tomcat3.2.1
I am getting these error messages saying: 

../jk/jk_nwmain.c line 62 -unexpected void
../jk/jk_nwmain.c TSR_THREAD undefined.


What am I doing wrong???

Thanks,

Joyce


Code from jk_nwmain.c
==============================



static void main();
#ifdef NETWARE
/*
 * NATIVE_MAIN
 */

/*
 * INCLUDES
 */

#include <stdio.h>
#include <nwthread.h>
#include <netdb.h>

NETDB_DEFINE_CONTEXT

/*
 * main ()
 *
 * Main entry point -- don't do much more than I've provided
 *
 * Entry:
 *
 * Exit:
 *    Nothing
 */

void main ()
{
   ExitThread (TSR_THREAD, 0); 
}

#elif HPUX11
/*
 * NATIVE_MAIN
 */

  /*
   * INCLUDES
   */

    #include <stdio.h>
    #include <pthread.h>
    #include <netdb.h>

    NETDB_DEFINE_CONTEXT

  /*  # Can I generate an error  --- yes if not remmed out */
    

    /*
     * main ()
     *
     * Main entry point -- don't do much more than I've provided
     *
     * Entry:
     *
     * Exit:
     *    Nothing
     */

     void main()
     {
        ExitThread (TSR_THREAD, 0);
     }
#endif

Mime
View raw message