← Commit list

8882ea53d

Eric Andersen
Eric Andersen
2002-12-11
SOURCE BUG Duration: 5s

Subject

Eliminate dependancy on kernel header files. Naughty naughty. Using linux kernel headers is a Bad Thing(tm) and should be punished. -Erik

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/hwclock.c+6 -1
@@ -30,10 +30,15 @@
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
-#include <linux/rtc.h>
#include <sys/ioctl.h>
#include "busybox.h"
+
+/* Copied from linux/rtc.h to eliminate the kernel dependancy */
+#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */
+#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */
+
+
#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS
# ifndef _GNU_SOURCE
# define _GNU_SOURCE