aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-09-01 15:57:03 +0200
committerMattias Andrée <maandree@kth.se>2018-09-01 15:57:03 +0200
commit8647f020c35bd91904cb67d65168c5b5f2521098 (patch)
tree9cf5abcffc8cfff304672026b1095be9f3febafe /src/unistd
parentmemcmp: compare unsigned chars (diff)
downloadslibc-8647f020c35bd91904cb67d65168c5b5f2521098.tar.gz
slibc-8647f020c35bd91904cb67d65168c5b5f2521098.tar.bz2
slibc-8647f020c35bd91904cb67d65168c5b5f2521098.tar.xz
m + strdup and strndup: use aligned_alloc(1, n) instead of malloc(n)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/searchpath3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistd/searchpath3.c b/src/unistd/searchpath3.c
index 19ee3ee..6f018c7 100644
--- a/src/unistd/searchpath3.c
+++ b/src/unistd/searchpath3.c
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>