xstrans.c 623 B

12345678910111213141516171819202122232425262728293031
  1. #ifdef HAVE_DIX_CONFIG_H
  2. #include <dix-config.h>
  3. #endif
  4. #define XTRANS_TRANSPORT_C
  5. #define TRANS_REOPEN
  6. #define TRANS_SERVER
  7. #define XSERV_t
  8. //#ifdef XSERV_t
  9. #include "os.h"
  10. //#else
  11. #include <stdlib.h>
  12. #define xalloc(_size) malloc(_size)
  13. #define xcalloc(_num,_size) calloc(_num,_size)
  14. #define xrealloc(_ptr,_size) realloc(_ptr,_size)
  15. #define xfree(_ptr) free(_ptr)
  16. //#endif
  17. #include <X11/Xtrans/Xtransint.h>
  18. #ifdef LOCALCONN
  19. #include <X11/Xtrans/Xtranslcl.c>
  20. #endif
  21. #if defined(TCPCONN) || defined(UNIXCONN)
  22. #include <X11/Xtrans/Xtranssock.c>
  23. #endif
  24. #include <X11/Xtrans/Xtrans.c>
  25. #include <X11/Xtrans/Xtransutil.c>