build.patch 439 B

1234567891011121314151617181920
  1. --- pyblock-0.53/dm.c.orig 2011-12-08 21:02:03.000000000 +0100
  2. +++ pyblock-0.53/dm.c 2017-03-06 19:06:36.925597603 +0100
  3. @@ -17,6 +17,7 @@
  4. */
  5. #define _GNU_SOURCE
  6. +#include <sys/sysmacros.h>
  7. #include <sys/stat.h>
  8. #include <sys/types.h>
  9. #include <unistd.h>
  10. @@ -645,7 +646,7 @@
  11. rc = pydm_init_table((PydmTableObject *)self, start, size,
  12. type, params);
  13. - if (!rc < 0) {
  14. + if (rc >= 0) {
  15. Py_DECREF(self);
  16. return NULL;
  17. }