Replace sys/time.h with proper includes for using localtime
authorgnezdo <gnezdo@openbsd.org>
Tue, 6 Aug 2024 04:59:18 +0000 (04:59 +0000)
committergnezdo <gnezdo@openbsd.org>
Tue, 6 Aug 2024 04:59:18 +0000 (04:59 +0000)
Sure deraadt@

usr.bin/make/timestamp.c

index 38c4753..a26d6df 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: timestamp.c,v 1.12 2024/04/09 15:08:21 cheloha Exp $ */
+/*     $OpenBSD: timestamp.c,v 1.13 2024/08/06 04:59:18 gnezdo Exp $ */
 
 /*
  * Copyright (c) 2001 Marc Espie.
@@ -24,7 +24,8 @@
  * (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 <sys/time.h>
+#include <sys/types.h>
+#include <time.h>
 #include <stdio.h>
 #include <string.h>
 #include "defines.h"