8c306bde67
Certain rpc headers are needed for compiling getaddrinfo.c. Unfortunatly that means we have to generate _a few_ header files which we do when we prepare the libc. These header files need to be created before the symlinks. Also, some of these header files depend on a patch. Therefore we apply the patches first, generate the header files and in the end we create the symlinks. Fixes #296.
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
--- include/rpcsvc/nis.x.orig 2012-06-03 09:44:28.379015585 +0200
|
|
+++ include/rpcsvc/nis.x 2012-06-03 09:45:45.916091879 +0200
|
|
@@ -399,10 +399,7 @@
|
|
%#define OARIGHTS(d, n) (((d)->do_armask.do_armask_val+n)->oa_rights)
|
|
%#define WORLD_DEFAULT (NIS_READ_ACC)
|
|
%#define GROUP_DEFAULT (NIS_READ_ACC << 8)
|
|
-%#define OWNER_DEFAULT ((NIS_READ_ACC +\
|
|
- NIS_MODIFY_ACC +\
|
|
- NIS_CREATE_ACC +\
|
|
- NIS_DESTROY_ACC) << 16)
|
|
+%#define OWNER_DEFAULT ((NIS_READ_ACC + NIS_MODIFY_ACC + NIS_CREATE_ACC + NIS_DESTROY_ACC) << 16)
|
|
%#define DEFAULT_RIGHTS (WORLD_DEFAULT | GROUP_DEFAULT | OWNER_DEFAULT)
|
|
%
|
|
%/* Result manipulation defines ... */
|
|
@@ -431,10 +428,8 @@
|
|
% * these definitions they take an nis_object *, and an int and return
|
|
% * a u_char * for Value, and an int for length.
|
|
% */
|
|
-%#define ENTRY_VAL(obj, col) \
|
|
- (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val
|
|
-%#define ENTRY_LEN(obj, col) \
|
|
- (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len
|
|
+%#define ENTRY_VAL(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val
|
|
+%#define ENTRY_LEN(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len
|
|
%
|
|
%#ifdef __cplusplus
|
|
%}
|