"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "have_getpgid.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_getpgid.c  (calc-2.12.7.2.tar.bz2):have_getpgid.c  (calc-2.12.7.6.tar.bz2)
/* /*
* have_getpgid - determine if we have getpgid() * have_getpgid - determine if we have getpgid()
* *
* 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_GETPGID * HAVE_GETPGID
* defined ==> use getpgid() * defined ==> use getpgid()
* undefined ==> do not or cannot call getpgid() * undefined ==> do not or cannot call getpgid()
*/ */
#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_GETPGID) #if defined(HAVE_NO_GETPGID)
printf("#undef HAVE_GETPGID /* no */\n"); printf("#undef HAVE_GETPGID /* no */\n");
#else /* HAVE_NO_GETPGID */ #else /* HAVE_NO_GETPGID */
 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)