use alt signal stack when present for implementation-internal signals
[musl] / src / dirent / seekdir.c
index 81a0e33..bf6cc6e 100644 (file)
@@ -1,12 +1,12 @@
 #include <dirent.h>
 #include <unistd.h>
 #include "__dirent.h"
-#include "libc.h"
+#include "lock.h"
 
 void seekdir(DIR *dir, long off)
 {
-       LOCK(&dir->lock);
+       LOCK(dir->lock);
        dir->tell = lseek(dir->fd, off, SEEK_SET);
        dir->buf_pos = dir->buf_end = 0;
-       UNLOCK(&dir->lock);
+       UNLOCK(dir->lock);
 }