Advertisement
uaa

uARM/OpenBSD diff

uaa
Apr 22nd, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. --- types.h.orig Sun Apr 21 20:07:06 2013
  2. +++ types.h Mon Apr 22 23:36:23 2013
  3. @@ -39,7 +39,9 @@ void* emu_alloc(UInt32 size);
  4. void emu_free(void* ptr);
  5. void __mem_copy(void* d, const void* s, UInt32 sz);
  6.  
  7. +#if !defined(__OpenBSD__)
  8. #define memset __memset_disabled__
  9. +#endif
  10. #define memcpy __memcpy_disabled__
  11.  
  12. #endif
  13. --- main_pc.c.orig Sun Apr 21 20:07:06 2013
  14. +++ main_pc.c Mon Apr 22 23:33:38 2013
  15. @@ -14,7 +14,7 @@
  16. #include <termios.h>
  17.  
  18.  
  19. -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
  20. +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  21. # define off64_t off_t
  22. # define fseeko64 fseeko
  23. # define ftello64 ftello
  24. @@ -185,7 +185,7 @@ int main(int argc, char** argv){
  25. cfg = old;
  26. if(ret) perror("cannot get term attrs");
  27.  
  28. - #if !defined(_DARWIN_) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
  29. + #if !defined(_DARWIN_) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
  30.  
  31. cfg.c_iflag &=~ (INLCR | INPCK | ISTRIP | IUCLC | IXANY | IXOFF | IXON);
  32. cfg.c_oflag &=~ (OPOST | OLCUC | ONLCR | OCRNL | ONOCR | ONLRET);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement