freebsd-ports/sysutils/pesign/files/patch-libdpe-common.h
Edward Tomasz Napierala b7ec4f6183 New port: sysutils/pesign
Signing tool for PE-COFF binaries, hopefully at least vaguely compliant
with the PE and Authenticode specifications.

Sponsored by:	The FreeBSD Foundation
2015-01-21 13:40:24 +00:00

17 lines
571 B
C

--- libdpe/common.h.orig 2014-10-24 21:51:06.000000000 +0200
+++ libdpe/common.h 2015-01-16 10:23:58.000000000 +0100
@@ -23,11 +23,11 @@
#include <sys/mman.h>
#define pwrite_retry(fd, buf, len, off) \
- TEMP_FAILURE_RETRY (pwrite (fd, buf, len, off))
+ pwrite (fd, buf, len, off)
#define write_retry(fd, buf, n) \
- TEMP_FAILURE_RETRY (write (fd, buf, n))
+ write (fd, buf, n)
#define pread_retry(fd, buf, len, off) \
- TEMP_FAILURE_RETRY (pread (fd, buf, len, off))
+ pread (fd, buf, len, off)
#define is_64_bit(pe) ((pe)->flags & IMAGE_FILE_32BIT_MACHINE)