summaryrefslogtreecommitdiff
blob: 8d6b40a97536020ed4c5700ecb933e96cfcd0103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://github.com/chaos/scrub/commit/188d999e2fb038dc702b47750d235ffd284dd518

From 188d999e2fb038dc702b47750d235ffd284dd518 Mon Sep 17 00:00:00 2001
From: Jim Garlick <garlick.jim@gmail.com>
Date: Wed, 21 Jul 2021 13:09:57 -0700
Subject: [PATCH] test: fix missing include in test program

Problem: tgetsize emits a compiler warning because
strerror() is not defined.

Include string.h to get the definition of strerror.
--- a/test/tgetsize.c
+++ b/test/tgetsize.c
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <libgen.h>
+#include <string.h>
 
 #include "getsize.h"