Skip to content

Commit

Permalink
eal/freebsd: add missing C++ include guards
Browse files Browse the repository at this point in the history
[ upstream commit 29fd052 ]

Add missing 'extern "C"' to file.

Fixes: 428eb98 ("eal: add OS specific header file")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
bruce-richardson authored and kevintraynor committed Mar 15, 2022
1 parent 098c1c5 commit fc9f233
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/eal/freebsd/include/rte_os.h
Expand Up @@ -5,6 +5,10 @@
#ifndef _RTE_OS_H_
#define _RTE_OS_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* This header should contain any definition
* which is not supported natively or named differently in FreeBSD.
Expand Down Expand Up @@ -59,4 +63,8 @@ typedef cpuset_t rte_cpuset_t;
} while (0)
#endif

#ifdef __cplusplus
}
#endif

#endif /* _RTE_OS_H_ */

0 comments on commit fc9f233

Please sign in to comment.