mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Proposed changes for v2.14.1.1
Added a few remarks on calc version numbers to version.c. Fixed how fposval.h is built. On a number of systems, the fposval.c file failed to compile incorrectly. This caused problems for systems in which fposval.h.def was not correct. Fixed how have_memmv.h is built. On a number of systems, the have_memmv.c file failed to compile incorrectly, producing a potentially incorrect have_memmv.h file for such systems. Fixed how align32.h is built. On a number of systems, the align32.c file failed to compile incorrectly, producing a potentially incorrect align32.h file for such systems. Fixed how have_newstr.h is built. On a number of systems, the have_newstr.c failed to compile incorrectly, producing a potentially incorrect have_newstr.h file for such systems. Fixed how have_strdup.h is built. On a number of systems, the have_strdup.c file failed to compile incorrectly, producing a potentially incorrect have_strdup.h file for such systems. Fixed how have_strlcat.h is built. On a number of systems, the have_strlcat.c file failed to compile incorrectly, producing a potentially incorrect have_strlcat.h file for such systems. Fixed how have_strlcpy.h is built. On a number of systems, the have_strlcpy.c file failed to compile incorrectly, producing a potentially incorrect have_strlcpy.h file for such systems. Fixed how have_uid_t.h is built. On a number of systems, the have_uid_t.c file failed to compile incorrectly, producing a potentially incorrect have_uid_t.h file for such systems. Fixed how have_uid_t.h is built. On a number of systems, the have_uid_t.c file failed to compile incorrectly, producing a potentially incorrect have_uid_t.h file for such systems.
This commit is contained in:
@@ -65,6 +65,8 @@ main(void)
|
||||
extern uid_t geteuid();
|
||||
|
||||
curds = geteuid();
|
||||
/* force curds to be used, but do not print much info about our UID */
|
||||
printf("/* geteuid() mod 2 == %ld */\n", ((long)curds) & 0x1);
|
||||
|
||||
printf("#define HAVE_UID_T /* yes */\n");
|
||||
|
||||
|
Reference in New Issue
Block a user