Parcourir la source

mips: fix build if threads are disabled

Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Waldemar Brodkorb il y a 8 ans
Parent
commit
b499fe614a
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      libc/string/mips/memcpy.S
  2. 2 2
      libc/string/mips/memset.S

+ 2 - 2
libc/string/mips/memcpy.S

@@ -23,7 +23,7 @@
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #elif _LIBC
 #elif _LIBC
 # include <sysdep.h>
 # include <sysdep.h>
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 # include <sys/asm.h>
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
@@ -33,7 +33,7 @@
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #else
 #else
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 # include <sys/asm.h>
 #endif
 #endif
 
 

+ 2 - 2
libc/string/mips/memset.S

@@ -21,7 +21,7 @@
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #elif _LIBC
 #elif _LIBC
 # include <sysdep.h>
 # include <sysdep.h>
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 # include <sys/asm.h>
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #elif defined _COMPILING_NEWLIB
 #elif defined _COMPILING_NEWLIB
@@ -29,7 +29,7 @@
 # include "machine/regdef.h"
 # include "machine/regdef.h"
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #else
 #else
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 # include <sys/asm.h>
 #endif
 #endif