Browse Source

mips: fix build if threads are disabled

Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Waldemar Brodkorb 8 years ago
parent
commit
b499fe614a
2 changed files with 4 additions and 4 deletions
  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
 #elif _LIBC
 # include <sysdep.h>
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
@@ -33,7 +33,7 @@
 # define PREFETCH_LOAD_HINT PREFETCH_HINT_LOAD_STREAMED
 # define PREFETCH_STORE_HINT PREFETCH_HINT_PREPAREFORSTORE
 #else
-# include <regdef.h>
+# include <sys/regdef.h>
 # include <sys/asm.h>
 #endif
 

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

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