Our coding standards say that OpenAFS source files should always have
#include <afsconfig.h>
#include <afs/param.h>
at the start of the file. Including just param.h, or having these
includes in a different order can produce unexpected effects, because
param.h includes sysnames.h, which in turn includes stds.h, which may
rely upon having the results of configure tests available.
Fix the obvious places in the Unix build which get this wrong.
Change-Id: I081f04dab30a6bbb49fe71d3ac2d7c11e231e2f5
Reviewed-on: http://gerrit.openafs.org/1912
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
14 files changed:
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <afsconfig.h>
#include <afs/param.h>
#include <afs/stds.h>
#include <errno.h>
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <afsconfig.h>
#include <afs/param.h>
#include <errno.h>
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <afsconfig.h>
#include <afs/param.h>
#include "Internal.h"
#ifdef xbsa
+#include <afsconfig.h>
#include <afs/param.h>
+
#include <sys/types.h>
#include <afs/stds.h>
#include <stdio.h>
* SUCH DAMAGE.
*/
+#include <afsconfig.h>
#include <afs/param.h>
#include "rxkad.h"
#include <rx/rx.h>
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#include <afs/param.h>
#include <afsconfig.h>
+#include <afs/param.h>
#include <afs/stds.h>
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <netdb.h>
-#include <afs/param.h>
#include <afs/afsint.h>
#define FSINT_COMMON_XG 1
#include <afs/afscbint.h>
+#include <afsconfig.h>
#include <afs/param.h>
+
#include <afs/afscbint.h> /*Callback interface defs */
#include <afs/afsutil.h>
#include <afs/afsutil_prototypes.h>
/* afsdump_extract.c - Extract files from an AFS dump */
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <string.h>
-#include <afs/param.h>
#include <afs/com_err.h>
#include "dumpscan.h"
#include "dumpscan_errs.h"
/* afsdump_scan.c - General-purpose dump scanner */
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
-#include <afs/param.h>
#include <afs/com_err.h>
#include <afs/pterror.h>
#include <afs/vlserver.h>
* so directories will appear first in the VNODE section.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/param.h>
#include <fcntl.h>
#include <lock.h>
-#include <afs/param.h>
#include <afs/afsint.h>
#include <afs/nfs.h>
#include <afs/acl.h>
* SUCH DAMAGE.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <err.h>
#include <netinet/in.h>
-#include <afs/param.h>
#include <afs/stds.h>
#include <afs/vice.h>
#include <afs/venus.h>
* SUCH DAMAGE.
*/
+#include <afsconfig.h>
#include <afs/param.h>
#if defined(AFS_DARWIN_ENV)
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
-#include <afs/param.h>
#include <afs/afsutil.h>
int main(int argc, char **argv) {