tests.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Index: camlidl-1.05/tests/unix.idl
  2. ===================================================================
  3. --- camlidl-1.05.orig/tests/unix.idl
  4. +++ camlidl-1.05/tests/unix.idl
  5. @@ -15,16 +15,16 @@ quote (C, "
  6. union process_status { int code; };
  7. - enum { WEXITED, WSIGNALED, WSTOPPED };
  8. + enum { WEXITED2, WSIGNALED, WSTOPPED2 };
  9. static void decode_status(int status, int * kind, union process_status * p)
  10. {
  11. if (WIFEXITED(status)) {
  12. - *kind = WEXITED; p->code = WEXITSTATUS(status);
  13. + *kind = WEXITED2; p->code = WEXITSTATUS(status);
  14. } else if (WIFSIGNALED(status)) {
  15. *kind = WSIGNALED; p->code = WTERMSIG(status);
  16. } else {
  17. - *kind = WSTOPPED; p->code = WSTOPSIG(status);
  18. + *kind = WSTOPPED2; p->code = WSTOPSIG(status);
  19. }
  20. }
  21. @@ -59,9 +59,9 @@ int execve([in,string] char * path,
  22. int fork(void);
  23. union process_status {
  24. - case WEXITED: int code;
  25. + case WEXITED2: int code;
  26. case WSIGNALED: int code;
  27. - case WSTOPPED: int code;
  28. + case WSTOPPED2: int code;
  29. };
  30. int wait([out] int * kind,