summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-02-18 20:09:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2025-02-18 20:10:19 -0800
commit785ba51591335ffcee1defd24cd8235ef24c4092 (patch)
treeaa5f03db5178da2fbfc00431d8942f85534ca802
parentbuild: update gnulib submodule to latest (diff)
downloadcoreutils-785ba51591335ffcee1defd24cd8235ef24c4092.tar.gz
coreutils-785ba51591335ffcee1defd24cd8235ef24c4092.zip
cksum: make cksum.h standalone
* src/cksum.h: Include stdint.h, stdio.h so that this file can be included in any order, after config.h. Add a copyright notice.
-rw-r--r--src/cksum.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/cksum.h b/src/cksum.h
index c42491a95..d866a7b74 100644
--- a/src/cksum.h
+++ b/src/cksum.h
@@ -1,5 +1,24 @@
+/* Calculate checksums and sizes of files
+ Copyright 2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
#ifndef __CKSUM_H__
-# define __CKSUM_H__
+#define __CKSUM_H__
+
+#include <stdint.h>
+#include <stdio.h>
extern bool cksum_debug;