"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "have_getprid.c" between
calc-2.12.7.2.tar.bz2 and calc-2.12.7.6.tar.bz2

About: Calc is a C-style arbitrary precision calculator.

have_getprid.c  (calc-2.12.7.2.tar.bz2):have_getprid.c  (calc-2.12.7.6.tar.bz2)
/* /*
* have_getprid - determine if we have getprid() * have_getprid - determine if we have getprid()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation. * as published by the Free Software Foundation.
* *
* Calc is distributed in the hope that it will be useful, but WITHOUT * Calc is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
* Public License for more details. * Public License for more details.
* *
skipping to change at line 42 skipping to change at line 42
* compile on your system. * compile on your system.
* *
* This prog outputs several defines: * This prog outputs several defines:
* *
* HAVE_GETPRID * HAVE_GETPRID
* defined ==> use getprid() * defined ==> use getprid()
* undefined ==> do not or cannot call getprid() * undefined ==> do not or cannot call getprid()
*/ */
#include <sys/types.h> #include <sys/types.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h> #include <unistd.h>
#endif
int int
main(void) main(void)
{ {
#if defined(HAVE_NO_GETPRID) #if defined(HAVE_NO_GETPRID)
printf("#undef HAVE_GETPRID /* no */\n"); printf("#undef HAVE_GETPRID /* no */\n");
#else /* HAVE_NO_GETPRID */ #else /* HAVE_NO_GETPRID */
 End of changes. 3 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)