xdm-1.1.11-setproctitle-include.patch 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. diff -ur a/xdm/choose.c b/xdm/choose.c
  2. --- a/xdm/choose.c 2011-09-25 09:35:47.000000000 +0200
  3. +++ b/xdm/choose.c 2014-01-06 16:33:09.628065364 +0100
  4. @@ -54,6 +54,14 @@
  5. # include <tiuser.h>
  6. # endif
  7. +# ifdef HAVE_SETPROCTITLE
  8. +# ifdef __linux__
  9. +# include <bsd/unistd.h>
  10. +# else
  11. +# include <unistd.h>
  12. +# endif
  13. +# endif
  14. +
  15. # include <time.h>
  16. # define Time_t time_t
  17. diff -ur a/xdm/session.c b/xdm/session.c
  18. --- a/xdm/session.c 2011-09-25 09:35:47.000000000 +0200
  19. +++ b/xdm/session.c 2014-01-06 16:40:57.508072789 +0100
  20. @@ -54,6 +54,15 @@
  21. # include <usersec.h>
  22. #endif
  23. +# ifdef HAVE_SETPROCTITLE
  24. +# include <sys/types.h>
  25. +# ifdef __linux__
  26. +# include <bsd/unistd.h>
  27. +# else
  28. +# include <unistd.h>
  29. +# endif
  30. +# endif
  31. +
  32. #ifndef USE_PAM /* PAM modules should handle these */
  33. # ifdef SECURE_RPC
  34. # include <rpc/rpc.h>