diff options
-rw-r--r-- | adb/framebuffer_service.c | 6 | ||||
-rw-r--r-- | libpixelflinger/Android.mk | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/adb/framebuffer_service.c b/adb/framebuffer_service.c index 8cbe840..61578aa 100644 --- a/adb/framebuffer_service.c +++ b/adb/framebuffer_service.c @@ -76,6 +76,7 @@ void framebuffer_service(int fd, void *cookie) exit(1); } + close(fds[1]); fd_screencap = fds[0]; /* read w, h & format */ @@ -173,10 +174,9 @@ void framebuffer_service(int fd, void *cookie) } done: - TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0)); - close(fds[0]); - close(fds[1]); + + TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0)); pipefail: close(fd); } diff --git a/libpixelflinger/Android.mk b/libpixelflinger/Android.mk index da9829d..f1bd522 100644 --- a/libpixelflinger/Android.mk +++ b/libpixelflinger/Android.mk @@ -36,6 +36,7 @@ PIXELFLINGER_SRC_FILES_arm := \ ifeq ($(ARCH_ARM_HAVE_NEON),true) PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S +PIXELFLINGER_CFLAGS_arm += -D__ARM_HAVE_NEON endif PIXELFLINGER_SRC_FILES_arm64 := \ |