summaryrefslogtreecommitdiffstats
path: root/libgloss/nds32/_gettimeofday.S
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/nds32/_gettimeofday.S')
-rw-r--r--libgloss/nds32/_gettimeofday.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/libgloss/nds32/_gettimeofday.S b/libgloss/nds32/_gettimeofday.S
index 85e2eaec3..adc5f6847 100644
--- a/libgloss/nds32/_gettimeofday.S
+++ b/libgloss/nds32/_gettimeofday.S
@@ -27,8 +27,16 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../syscall.h"
-#include "syscall_extra.h"
+#ifdef __NDS32_VH__
+
+#include "vh.h"
+.extern _impure_ptr
+TYPE3 _gettimeofday, VH_GETTIMEOFDAY
+#else /* not __NDS32_VH__ */
+#include "../syscall.h"
+#include "syscall_extra.h"
SYS_WRAPPER _gettimeofday, SYS_gettimeofday
+
+#endif /* not __NDS32_VH__ */