summaryrefslogtreecommitdiff
path: root/libc/private/bionic_asm.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-01-08 20:34:11 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-01-08 20:34:11 +0000
commitddb51deebe1e24203b496006bf52a95a617d824f (patch)
tree8f5119d9fb845396c9c86873a8f9607026e36a42 /libc/private/bionic_asm.h
parent764c717156f5eda8711e78083134e2d3eb5a390c (diff)
parent771af5efc6954f7dfb1420328faeef961378c196 (diff)
Merge "Fix things so that <features.h> can be used from assembler again." am: 771af5efc6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1543864 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id5265987dc1e5490f1f61d9dfd64cf4f159309cc
Diffstat (limited to 'libc/private/bionic_asm.h')
-rw-r--r--libc/private/bionic_asm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/private/bionic_asm.h b/libc/private/bionic_asm.h
index 6d4f7d52c..d68a2d604 100644
--- a/libc/private/bionic_asm.h
+++ b/libc/private/bionic_asm.h
@@ -26,8 +26,10 @@
* SUCH DAMAGE.
*/
-#ifndef _PRIVATE_BIONIC_ASM_H_
-#define _PRIVATE_BIONIC_ASM_H_
+#pragma once
+
+/* https://github.com/android/ndk/issues/1422 */
+#include <features.h>
#include <asm/unistd.h> /* For system call numbers. */
#define MAX_ERRNO 4095 /* For recognizing system call error returns. */
@@ -86,5 +88,3 @@
#define NOTE_GNU_PROPERTY() \
__bionic_asm_custom_note_gnu_section()
-
-#endif