• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/boa/0001-use-name-max.patch
Thomas PetazzoniThomas Petazzoni committed e3526c1519402 May 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Use NAME_MAX instead of MAXNAMLEN
2
​
3
NAME_MAX is POSIX, and available in all C libraries, generally in
4
<limits.h>, while MAXNAMLEN is BSD-specific, and only available in
5
musl in <sys/param.h>. So let's use NAME_MAX instead of MAXNAMLEN.
6
​
7
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
​
9
Index: b/src/index_dir.c
10
===================================================================
11
--- a/src/index_dir.c
12
+++ b/src/index_dir.c
13
@@ -29,7 +29,7 @@
14
 #include <fcntl.h>
15
 #include "compat.h"
16
 
17
-#define MAX_FILE_LENGTH                         MAXNAMLEN
18
+#define MAX_FILE_LENGTH                         NAME_MAX
19
 #define MAX_PATH_LENGTH                         PATH_MAX
20
 
21
 #define INT_TO_HEX(x) \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.